I have a record triggered flow that needs to create related records if they do not already exist. However, once the record is created, if other records in the transaction would have triggered a create records, the flow is still trying to create a record, even after it has already created one that should be used instead.
-
For example:
Imagine you have two objects: ObjA and ObjB, where ObjA has unique field that identifies a specific ObjB record. If 3 ObjA records are inserted, with an ObjB identifier of 'ABC', the flow would query for ObjB records that are named 'ABC', and if it cannot find any records, it must create a records named 'ABC'. When the flow gets to the point of the Create Records, it creates the record the first record, but then tries to create the record again for the remaining two records.
-
I assume this is because once each interview has knowledge of if a record exists or not, all of the interviews that need to create a record 'wait' at the create records and then execute at the same time, therefore attempting to create duplicates.
Is there anyway to get flow interviews to communicate with eachother to only execute the create records once and then the flow could not create duplicates?
Thank you!