Approval Process using Apex
In order to use apex code to submit the record for Approval process, we have to first create Approval process in Create --> Workflow & Approvals. Sample code: void ....
In order to use apex code to submit the record for Approval process, we have to first create Approval process in Create --> Workflow & Approvals. Sample code: void ....
Sample Code: Visualforce Page: <apex:page controller="SampleVisualforcePageController" id="pg"> <apex:form id="frm"> <apex:messages/> <apex:pageblock id="AccountsList" title="Accounts List" > <apex:pageBlocktable value="{!listAccounts}" var="acc" > <apex:column title="Select" > <apex:inputCheckbox value="{!acc.selectedBool}"> </apex:inputCheckbox> </apex:column> <apex:column value="{!acc.objAccount.Name}"/> </apex:pageBlocktable> <apex:pageblockButtons ....
PageReference can be used to navigate from the current page to a different page using Salesforce Apex. The below code is used to open new page 'AddAllBlog' from current page. ....
The below simple code is used to convert String to Date data type using Apex Sample Code: String todate = '12/27/2013'; Date dt = Date.parse( todate ); System.debug(' Parsed Date is ' + dt ); Output:
In this Blog Post, we are going to use Salesforce Apex to send email to a Public Group. Please check the following code for your reference. Sample Class: public class ....
Sample code: Apex: public class SampleController { public boolean displayPopup {get; set;} public void closePopup() { displayPopup = false; } public void showPopup() { displayPopup = true; } } Visualforce ....