I assume this feature was not depreciated because it'd break existing flows. How do we do this in the new flow builder?
Use Case: Fetch all Contact Roles on the Opportunity and prompt the user to pick one to populate the "Prepared For" info on a Quote creation during a visual flow.
답변 8개
Ah. Well then. Are you hoping to populate the "Prepared For" field with a Contact Id? If so, this workaround should do the trick:
1. Create a field on the Contact object that concatenates all of the OpportunityId values from the related Contact Role records. I have the Declarative Lookup Rollup Summary (DLRS) package installed (https://github.com/afawcett/declarative-lookup-rollup-summaries), but you can use any rollup functionality that supports concatenation of values from a child object.
2. Set up your Record Choice Set to query Contact records where the field from #1 "contains" the Opportunity ID for the opportunity record in your flow (I'm making an assumption that you have access to this already).
3. You can set up the choice labels to display contact names.
4. You can set up the choice values to store contact IDs.