I have a record-triggered flow which runs when a record is created and it calls an autolaunched flow where it does some record creation on a custom object only if the record does not exist. If a record exists then it should return the id of the existing record.
When I have three records created what should happen is, for each record the autolaunched flow should check if the record exists or not before creating a new record.
But the issue I am seeing here is for each record the autolaunched flow is creating a new record. It does not check if a record exists when the second and third record are created.
For the second and third records I am expecting the id of the existing record to be returned.
Here is the start of my record triggered flow where I am calling a subflow -
Here is the start of the Subflow - Here it runs the Create Invoice for Today node thrice instead of just once which would be for the first record and for the second and third it should run the Return Todays Invoice ID node.
Here are the debug logs. It says the Invoice Today Exist decision is false always -