- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 02:06 AM
Hi Everyone
I have a requirement that if a field called Auto Approve on the Change Request form is set to true, and my decision table evaluates to true, then auto approve any approvals that might be generated.
If possible i would like to have this running inside flow designer so others can easily change the setup if required.
Now i have this working already by creating a flow on the sysapproval_approver where it triggers when an approver is created where the relationship to a change request is not empty and that change request has the field auto approve set to true.
Then i get the different record counters for my decision table and then determine if i can actually approve the approval or not.
Now the issue here is if the change request has 13 approvals. Then the flow will run 13 times, which could be a waste of resources.
Does anyone know of a way to run this from the actual change request and then run through the associated approvals.
Because from i can see there is no way to trigger a flow when an approval is added to a record?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 03:08 AM
To anyone who might one day look at this, the answer was that no there is not a related record / relationship trigger (i used to work with Cherwell Service Management) where this was possible.
If the relationship is a 1:1 then you can do it no problem, but if it's a 1:Many relationship, you cant set the Many table as a trigger, so either you have to make sure something is update on the parent table everytime a record is added or update on the child table.
Or you do the workaround i did and put your trigger on the Many (child) table and have it run from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 03:08 AM
To anyone who might one day look at this, the answer was that no there is not a related record / relationship trigger (i used to work with Cherwell Service Management) where this was possible.
If the relationship is a 1:1 then you can do it no problem, but if it's a 1:Many relationship, you cant set the Many table as a trigger, so either you have to make sure something is update on the parent table everytime a record is added or update on the child table.
Or you do the workaround i did and put your trigger on the Many (child) table and have it run from there.