Category: Salesforce

  • Why is the IF Condition Not Working in My Email Template?

    Question I added an IF condition to my email template, but it is not working as expected. Instead of evaluating the condition, the output appears as: The expected output should be: Additionally, when I try using this IF statement: I get the following error message: “This template doesn’t support SML merge fields. Use the merge…

  • How can I use Custom Labels in Field Service Mobile Flows?

    Question I’ve been replacing hard-coded text in Field Service Mobile Flows with Custom Labels to support translations. Since Custom Labels cannot be applied directly to Display Text components, I followed a workaround that suggests creating a Formula Text Resource to reference the Custom Label, then using that formula in the Display Text component. However, when…

  • How to Exclude Keywords in SOQL?

    Question I need to write a SOQL query in Power Automate that retrieves the IDs of Cases where the comment text does not contain specific keywords. Specifically, I want to exclude cases where the comment includes any of these words: “freigabe”, “Freigabe”, or “DocCheck_approved”. However, my current attempt does not work as expected. Instead of…

  • How to Get Parent Id in New Button Override?

    Question I am using an Aura component to override the New and Edit actions for a custom object (Child_Object__c), which has a master-detail relationship with Parent_Object__c. When clicking Edit, force:hasRecordId correctly provides the record Id of the child object. However, when clicking New from the related list on the parent record’s detail page, there is…

  • How to Automate API Event Journey Deployment After an Email Update?

    Question We are looking to automate the process of pausing, saving (or publishing), and resuming an API Event journey when the transaction-specific content within an email template is updated. Our email templates consist of a standard header and footer, while the center panel contains dynamic content specific to transactions. This center panel is managed by…

  • How to Fix It: Einstein Bot Deployment Error?

    Question I am trying to deploy an Einstein Bot that includes several Messaging Components. However, I am encountering the following error during deployment: This issue is confusing because my Messaging Component is not a restricted picklist. Additionally, I was able to deploy the same bot to a different environment without any issues. Has anyone else…

  • What is the Trigger Execution Order During Lead Conversion?

    Question I’m working on a project where I need to customize the standard lead conversion process. Triggers during lead conversion have always been tricky in past projects, so I want to ensure I fully understand the exact order of execution before designing my solution. However, after searching extensively, I haven’t found a clear and detailed…

  • Why is CurrentPageReference.state Always Empty in LWC on a Community Page?

    Question I am trying to retrieve a URL parameter in an LWC embedded in a Salesforce Community page, but CurrentPageReference.state is always coming as {}. Even though I pass eventid in the URL like this: the console log shows: Why is the state object empty, and how can I correctly access the URL parameter? Answer…

  • Why Is My Apex Sharing Rule Not Granting Record Access?

    Question I am trying to share Project__c records with the Project Management Team public group when Priority__c is set to “High” using an Apex sharing rule. To achieve this, I created an Apex Sharing Reason called Project_Sharing_Rule and implemented the following trigger and helper class: Trigger Code Apex Class Code Answer The error occurs because…

  • Why Am I Unable to Open an Experience Cloud Site in an iframe?

    Question I have an OmniScript on an Experience Cloud site, and I need to embed another Experience Cloud site inside this OmniScript. To achieve this, I created an LWC component that contains an iframe to load the second site. However, when I try to open the second Experience Cloud site inside the iframe, I get…