Skip to main content The last day to register for a Salesforce or Tableau exam is June 30th. Learn more about the new Salesforce certification experience coming July 21st.

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.

I have a flow, shown below, that is supposed to update a field called Last Activity, when a Case Comment is added to a Case.   

 

I have the flow in a sandbox and it runs perfectly. 

Once it has been through UAT and is promoted to our production environment, I regularly get errors like this: 

 

"This error occurred: SELF_REFERENCE_FROM_TRIGGER: Object 500Pxxxxxxxxxxxxxxxx is currently in a merge operation, therefore a trigger can not update it" 

 

All the users are doing is adding the Case Comments. The comment is added, but it generates the above error, where  500Pxxxxxxxxxxxxxxxx is the parent Case ID. 

Using a flow, to update parent case, when a Case comment is added?

 

Anyone got any suggestions, why I am getting a Merged error? 

 

Thank you in advance. 

Tony Chilvers 

 

#Flow

3 answers
  1. Today, 8:38 AM

    Hello @Tony Chilvers

    You are receiving the error message "Object 500Pxxxxxxxxxxxxxxxx is currently in a merge operation, therefore a trigger can not update it," which indicates that the record is currently under a merge operation when the flow attempts to update. 

    Now, as this flow works in the sandbox, it fails intermittently in production because of concurrent operations on the Case. 

    To avoid trying to update the Case while it's still being processed, move the update to an asynchronous path using the Scheduled Paths feature: 

    1. In your Record-Triggered Flow, click + after Start and choose Scheduled Path 

    2. Set a delay: e.g., 0 Minutes After the Record is created 

    3. Add the Update Records logic under this Scheduled Path 

     

    I hope this helps to resolve your issue. 

     

    Thanks & Regards 

    Amit Kumar

0/9000

I'm getting this error below when I try to create the messaging session manually through a Flow trigger for the messaging session. 

I have a web-to-case where after the case is created, I create the Messaging Session and route it to an agent. 

It used to work with Standard Messaging, but now, when I changed to Enhanced Messaging, I'm getting this error. 

Where can I get the Conversation Identifier value to populate the Messaging Session record I'm creating? 

 

INVALID_INPUT: Conversation Identifier field required to be set on Messaging Session for Messaging Channel supporting rich content.

 

 

#Service Cloud

3 answers
0/9000
2 answers
  1. Today, 9:27 AM

    Your image shows that is version 1. Try creating a new version of the topic. Then save the version (without changes). Then try adding an action

0/9000

I have a use case where for each opportunity I have to send an email to contact regarding the opportunity . I am building this using SDR Agent and for generating the email I am using Agentforce SDR Email Prompt Template but the issue is that the prompt is not taking values of custom fields in this prompt template. How can I resolve this issue?  I have tried updating prompt instructions but it is still not working. 

 

#Salesforce Developer  #Agentforce  #TrailblazerCommunity

1 answer
  1. Today, 9:04 AM

    Hi @Sujeet Kumar

    - Did you configure the custom prompt suggesting the agent to use specific fields? Like as you are fetching using SDR email prompt template, you will have the object selected and you need to mention the fields which it should refer based on the object inside the prompt template. Kindly confirm whether that's explicitly mentioned. 

    Thanks

0/9000

Je n'ai pas l'option sur ma playground edit element, et je ne peux pas continuer mon trail et valider ce trail. Pourriez-vous m'aider s'il vous plait? Merci 

 

#Trailhead Challenges

0/9000
2 answers
  1. Divya Chauhan (Kcloud Technologies) Forum Ambassador
    Today, 9:11 AM

    Hello @Sham K

     

    Use Standard Objects when possible-ensure better compatibility with Customer 360 Data Model. 

    Select Only Required Field-avoid unnecessary data ingestion and improve performance. 

    Enable Changeata Capture for real-time updates from Salesforce. 

    Define Identify Fields Early-Helps in future Identify Resolution setup. 

    Avoid Custom Lookup Loops-can create mapping issues or errors. 

    Verify Object Relationships-ensure related objects are correctly mapped. 

    Plan Data Limits-keep within ingestion limits to prevent throttling. 

    Run Initial Sync in Off-peak Hours-minimizes impact on org performance. 

    Use Descriptive Names-helps the downstream team during data activation. 

     

0/9000
1 answer
  1. Today, 9:08 AM

    Hi @Kyle Daimler Santos Tacorda

     

    Kindly follow below steps - 

     

    Create a new action 

    You will have an option to select API 

    Reference Action Category - external services 

    Reference Action - the external service which is configured 

     

    Thanks

0/9000

Challenge Not yet complete... here's what's wrong: 

We can't find all of the expected emails were restored. Make sure you've identified all contacts affected by the data corruption event. 

 

#Trailhead Challenges

1 answer
0/9000
1 answer
0/9000

We have private OWD for Case and using Owner Based sharing rules we are sharing the cases with specific roles and subordinates. 

Now, using a flag on Case record if I mark a Case as 'Private', I need to remove all the Case share records. 

Now the problem is - in Owner Based sharing we can't add field criteria and if I write a trigger or flow to delete Case Share entries, how do I make sure if the Sharing Rule recalculation happens the deleted Case Share entries will be added back.  

If you have worked on any such requirement, your help is much appreciated. 

 

#Service Cloud #Salesforce Developer #Salesforce Admin

1 answer
  1. Today, 8:49 AM

    Hi @Rahul Shah

     

    This can be done using Apex sharing (using access level methods). 

     

    Salesforce will attempt to reinitiate same sharing access which was granted previously. Note : If there is a change which happened in sharing rules in between deletion and undeletion the access level won't be mapped. 

     

    This is a generic feature  present. This should work here as well. 

     

    Ref -

    https://help.salesforce.com/s/articleView?id=platform.security_apex_sharing_recalc.htm&type=5

     

     

    This article refers recalculation of rules in general. 

     

    Thanks

0/9000