I'm working on a flow where i do a fast lookup to the contact object and store the ids found in a sobject variable but this variable is not showing up as an option for selection when a i add a loop element. any ideas why this would be?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
You need to use an SObject Collection Variable. Unlike an SObject Variable, collections can hold multiple records. This is noted in the documentation:
Make sure that your filter criteria sufficiently narrows the search. If you use an sObject variable to store the results, the Fast Lookup element returns only the first record from the filtered results. (Emphasis added)