function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Carlos Tasayco SilvaCarlos Tasayco Silva 

Help Error flow builder

Hi All,

I am trying to send a survey (from salesforce) to the contacts related to an opportunity when it has been closed.

This is my flow:

User-added imageUser-added imageUser-added image
When I am trying to close my opportunity, I am receiving this error message

User-added imageI think is because of the text variable I created.

Could you please me instruct me how to do this? There is a missing part in my flow (Probably).

I look forward hearing from you.
Warm regards
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Carlos,

You need to assign the opportunity contactid to the Contact id variable. As it is null this flow is failing. Please let me know if you need any further details on it.

If this solution helps, Please mark it as best answer.

Thanks,
 
Carlos Tasayco SilvaCarlos Tasayco Silva
Thanks for your response, but I still dont get it my opportunity has a contact associated 
User-added image
Or I have to something else? in the flow the contactid was a variable I created only in the flow.

Warm regards
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Carlos,

Can you check using SOQL query if the contactid had some value for the opportunity. 

You have to get the contact id from opporunity contact role using get record as below.

User-added image

If this solution helps, Please mark it as best answer.

Thanks,