Enforcing field level security using Salesforce Apex Class You can determine field level security by using getDescribe() . Below is the example, Schema.DescribeFieldResult fieldld = Account.Phone.getDescribe(); Boolean notHidden = fieldld.isAccessible(); …
APEX
-
-
Splitting String Example in Salesforce Apex Class: Returns a list that contains each substring of the String that is terminated by the regular expression regExp, or the end of the …
-
Fetch the Label Value using Salesforce Apex Class and Visualforce Page Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. Yes, we can …
-
How to get the Salesforce Org Wide Address ID we can get the Org Wide Address ID Using ‘Organization Wide Address’ Salesforce Object. below is the Sample Apex Class [java] …
-
How to show a lookup icon using VisualForce Page Yes. we can certainly achieve using below steps. Example:1 Use standardController and “extensions”. Put your custom controller in extensions. it will …
-
How to Execute the Batch Apex Class for Every 30 minutes We can achieve using System.schedule method. Below is the Example – we need to execute this from the system …
-
How to check the if condition in Salesforce Visualforce page? Assign the variable in your apex class and use that variable using below, Ex1: [html] <apex:outputPanel id=”ref3″ style=”{!IF((masterLookupType == ‘Contacts …
-
How to Convert from SET to LIST Using Apex Class? Using below code we can convert from SET to LIST, Pass your set values in this method ‘convertToList’ and you …
-
How to Send the Email with Attachment Using Apex Class? Using below code we can set the To, CC, BCc, Body Content with Email Signature and with the Attachment from …
-
How to execute Batch Apex Using Apex Trigger? Call your batch Apex class from below trigger, Trigger: [java] trigger UpdateAreaInfoUser on User (after update) { Map<id, User> owners = new …