Trigger approvals for change request if outage is present.

zia
Tera Contributor

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!

2 ACCEPTED SOLUTIONS

H_9
Giga Guru

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.

Thanks. 🙂

View solution in original post

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.

H_9_0-1664883111713.png

 

Hope this will help you.

Thanks. 🙂

View solution in original post

3 REPLIES 3

H_9
Giga Guru

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.

Thanks. 🙂

zia
Tera Contributor

Hi @H_9 , Thanks for your answer. Can you please elaborate point 1.

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.

H_9_0-1664883111713.png

 

Hope this will help you.

Thanks. 🙂