Posts

Admin Learning Links Salesforce

Picklist Administration Choose the right picklist field for the job, manage picklists, and share picklist values. Add or Edit Picklist Values

Salesforce apex Inboung email test class

 Main class :  global class EmailCatcherHandler implements Messaging.InboundEmailHandler {       global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {           Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();                      string emailBody = email.subject;           System.debug('email.subject --- '+email.subject);           list<string> emailSplits = emailBody.split('-');           string caseNum = emailSplits[1];           caseNum = caseNum.trim();           Case caseRecord = [Select id from Case where caseNumber =: caseNum];                      Task tObj = new Task();         ...

Image test eventsx

Image

How to get sessionid and salesforce org base url in salesforce

 old : string getSessionId=UserInfo.getOrganizationId().substring(0, 15) + ' ' +  UserInfo.getSessionId().substring(15); string loginUrl=URL.getSalesforceBaseUrl().toExternalForm()+'/secur/frontdoor.jsp?sid='+getSessionId; System.debug('>>>>>>>DEBUG>>>>>>>>>>>'+loginUrl); =========================================== new 12-6-2024 1. string getSessionId=UserInfo.getOrganizationId().substring(0, 15) + ' ' +  UserInfo.getSessionId().substring(15); string loginUrl='/secur/frontdoor.jsp?sid='+getSessionId; System.debug('>>>>>>>DEBUG>>>>>>>>>>>'+loginUrl); 2. ofter domain we need to add step1 output then we get full url for login using sessionid in salesforce. =========================================================== 1 : domain: 2 : add url : / secur/frontdoor.jsp?sid= 3: org id: 00D6u0000004Y50 4. session: 5. sessio id means : org ...

How to handle recursive trigger in apex salesforce

 https://help.salesforce.com/s/articleView?id=000386331&type=1

How to check empty sring in salesforce flow

  {!$GlobalConstant.EmptyString} Note : this will work for Text type of datatype in flow.

How to assecc varible in flow - Salesforce

for suppose u are created varible in flow like "GetEmailRecord"  then as below u need to assign that variable to other varible or object field {!GetEmailRecord}