Stop flow execution/Skip Flow if update made through Additional comments/Attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 08:50 PM
Hey everyone,
I created a custom table extending it from Task table and developed a flow which triggers when record is created/updated in that custom table. Now, this flow executes even if I comment on record, Modify Attachment/Add Attachment. I want to stop this behaviour to avoid unnecessary flow execution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 10:05 PM
Hi @Bchaudhary
When we configure Trigger in the flow, there is an option Run Trigger, where we can when to run the flow.
- For each unique change: Triggers the flow for every unique update to a non-system field even if the flow is currently running.Note: The system stores a history of every change to a record and determines whether the change is unique. For example, if an incident record's State field changes from In Progress to On Hold, the flow can run. However, if the State field then changes back to In Progress, the flow can't run.Note: Flows that have a record trigger that runs For each unique change can produce recursions when run in a non-interactive session. When this type of flow makes a change to the trigger record, the change meets the flow trigger conditions and causes a recursion.
- Once: Triggers the flow once for the life of the record.
- Only if not currently running: Triggers the flow for every unique record change if the flow is not currently running on this record. This behavior is the same as the Always option in previous releases.
- For every update: Triggers the flow every time that the record is updated, regardless of whether there has already been or currently are any running contexts for the flow.
Ref: Workflow Studio flow trigger types
So in your case, most probably you're looking for the Once option..
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 04:48 PM
Hey @Tai Vu,
I want to run a flow based on state change which is working fine with Trigger 'Only if not currently running' but if comments are added/ attachment are modified it triggers the flow which I don't want. Thanks for your response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 10:04 PM
Hi @Bchaudhary
Since you already configured the Trigger "Only if not currently running", it looks like the triggered flow has completed so when we do the second update, it triggers the flow again.
Can you share more about the business requirement for better understanding?
Cheers,
Tai Vu