How to Stop Apex Scheduled jobs in Salesforce System.abortJob(Id) can do this. Simply pass in the Id of the AsyncApexJob for the job in question. You’ll note the docs specifically mention …
Apex class
- APEXSALESFORCESalesforce CustomizationSalesforce Interview QuestionsSalesforce.com
-
How to Check Logged in User has a Custom Permission in Salesforce As of the Winter 18 Release, use the FeatureManagement class to identify the logged in User has a Custom Permission. below …
-
How to use the Conditional / Ternary operator in Salesforce Apex Class ? : x ? y : z Ternary operator (Right associative). This operator acts as a short-hand for if-then-else …
-
How to Replace String Values in Visualforce Page SUBSTITUTE – new text for old text in a text string. Example: {!SUBSTITUTE(Lead.Company, ” “, “”)} //Remove the Space in Lead Company {!SUBSTITUTE(Account.Name, “”, “”)} //Remove dot value in Account Nmae <apex:outputText value=”{! SUBSTITUTE( …
-
How To get Day, Month and Year values using Apex Class in Salesforce Use the Following code to get the Day, Month and Year values using Apex Class Integer d …
- APEXSALESFORCESalesforce CustomizationSalesforce.com
Code Coverage in Try Catch Block in Apex Test Class in Salesforce
Code Coverage in Try Catch Block in Apex Test Class in Salesforce Sample Apex class and Apex Test class for your reference to increasing the code coverage in Try Catch …
- APEXSALESFORCESalesforce CustomizationSalesforce.com
Extract string using Regular Expression in Salesforce Apex
Extract string using Regular Expression in Salesforce Apex This is achievable with the help of Regular Expression with Apex Pattern and Matcher Classes and below is the some examples: 1). …
-
How to find manager list using apex class in salesforce Its possible to find out from managerId field in User Object and below is the code to find manager hierarchy …
- APEXSALESFORCESalesforce CustomizationSalesforce.comTriggerTriggers
update a related record value using Map and Apex class?
update a related record value using Map and Apex class? Example 1: How to create and update existing contact records using map and apex class [java] global void execute(Database.BatchableContext BC, …
-
How to change date formats using Apex Class? For Example 1: 2017-01-24 to change the date format to be in DD.MM.YYYY Below example should work if you can use a …