Skip to main content

Will we be able to receive a collection of bulk records upserted that triggered a flow and loop through them and make decisions? 

I have a PB and flow where on Create/edit of a record, flow looks up to see if a child record exists in another object for a unique external Id. If not exists it will create or if exists it will update the record. My problem is when multiple records are updated in bulk and the child record does not exist the flow is attempting to create all child records in bulk but when these records have the same unique external Id it errors trying to create a DUP external ID. I am checking on this fault now and can then make a decision to update but this generated flow error emails and is annoying. 

I need this flow to take a collection of records bulk upserted and loop through them to make decisions to create or update as opposed to trapping on the fault DUP external Id.

#Lightning Lounge #Lightning Flow 

1 commentaire
0/9000