How to remove Emojis from String using Salesforce Apex?
Sample Code: String tempStr = 'Testing @ 😗 😐 Sample % 😀 😁 😂 🤣 ⛑ ☕️ ☁️ 🥰 Example'; System.debug( 'Text wtih Emojis: ' + tempStr ); String strRegex ....
Sample Code: String tempStr = 'Testing @ 😗 😐 Sample % 😀 😁 😂 🤣 ⛑ ☕️ ☁️ 🥰 Example'; System.debug( 'Text wtih Emojis: ' + tempStr ); String strRegex ....
Salesforce Connect uses Apex Connector Framework to sync, query, search, etc. data from External Data Source. The External Data Source can be creating using the Apex Connector Framework. Follow these ....
We will get INSUFFICIENT_ACCESS_OR_READONLY when we set ActivityId on the EmailMessage record with RelatedToId other than Case Record. Sample Code: objEmailMessage.RelatedToId = '0018c000026ZmPmAAK';//Hard Coded Account Id objEmailMessage.ActivityId = '00T8c00003vrOJ5EAM';//Not supported ....
Using the following Lightning Web Component, we can create a Quick Action to Download All the the files for a record in Salesforce. Sample code: Apex Class: public with sharing ....
Using the following Apex Code snippet, you can find the fields that are added as part of a page layout in Salesforce. Sample Code: List < Metadata.Metadata > pageLayouts = ....
Single Email Limit is subjected to emails sent via API or Apex. There’s no limit on sending single emails to contacts, leads, person accounts, and users in your org directly ....
Use the following code and execute in Anonymous Apex window to check the Daily Workflow Emails Limit usage Sample Code: Map < String,System.OrgLimit > limitsMap = OrgLimits.getMap(); System.OrgLimit apiRequestsLimit = limitsMap.get( ....
The Singleton pattern attempts to solve the issue of repeatedly using an object instance, but only allowing to instantiate it once within a single transaction context. So, using Singleton pattern ....
Sample Code:DateTime currentDT = System.now();String strUnixTimeStamp = String.valueof( currentDT.getTime() );System.debug( 'String UnixTimeStamp is ' + strUnixTimeStamp );Long longUnixTimeStamp = Long.valueOf( strUnixTimeStamp );System.debug ( DateTime.newInstance( longUnixTimeStamp ) ); Output: Note: It ....
triggerable property from the object schema can be used to determine whether Trigger can be developed on that object. Sample Code(Trigger not allowed): Map < String, Schema.SObjectType > globalDescription = ....