Interaction between record producer post-insert scripts and Flows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 07:24 AM
Is anyone able to share any experience on the interactions between
- post-insert scripts on record producers, and
- flows?
The reason for using a post-insert script is because there will be some more records created which need to have a reference set to the record created with the record producer.
My understanding is it's not possible to do that in the main RP script because the record isn't created at that point.
There will then be a flow triggered which operates on all of the new records.
My concern is that under some circumstances, there might be a chance the flow will try to execute before the post-insert script has finished running and fail due to the additional records not being created yet.
Is this unfounded paranoia?
I feel like there should probably be a built-in delay at the start of the Flow to mitigate the risk, but that also seems like a brute force solution and I might be missing something.
Keen to hear from experts about what the best practice might be in this circumstance.
Many thanks!
- Labels:
-
flow designer