- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2022 09:39 PM
Hi Experts.
I want to trigger change request approvals for group 'SMC-Change Management' only if an outage is associated with that change and is visible under related list of the change form. Now to achieve this, I have tried Flow Designer. Approval triggers for every change irrespective of outage present or not, and I am struggling to check if outage is associated with the change or not via flow, because there is no field present on the change form that points to outage table. Can you guys suggest something on this? Thanks in Advance!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2022 10:39 PM
Hello,
Ideally you should have done it through a Business Rule with a condition as when the change request's state changes to certain state.
Now since you have done it using a flow design, I dont think we can call a script include function in the trigger condition of the flow design.
So now what you can do is:
1. in your flow design add a new "script" type activity after the start of your flow design
2. This activity will check for the outage record, whether there is any outage record is associated with the change of not and based on that it will return true or false
3. Add an "if" condition activity and that will check the value returned in the previous activity
4. If true is returned then the flow design will propagate as it is now
5. If false is returned then the flow should directly go to the end
Hope this helps you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 04:33 AM
From the first point I meant to create a custom action that will check whether the change request has any outage records associated with it or not. This action will return true or false.
Hope this will help you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2022 10:39 PM
Hello,
Ideally you should have done it through a Business Rule with a condition as when the change request's state changes to certain state.
Now since you have done it using a flow design, I dont think we can call a script include function in the trigger condition of the flow design.
So now what you can do is:
1. in your flow design add a new "script" type activity after the start of your flow design
2. This activity will check for the outage record, whether there is any outage record is associated with the change of not and based on that it will return true or false
3. Add an "if" condition activity and that will check the value returned in the previous activity
4. If true is returned then the flow design will propagate as it is now
5. If false is returned then the flow should directly go to the end
Hope this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 01:55 AM
Hi @H_9 , Thanks for your answer. Can you please elaborate point 1.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 04:33 AM
From the first point I meant to create a custom action that will check whether the change request has any outage records associated with it or not. This action will return true or false.
Hope this will help you.