The CreatorCon Call for Content is officially open! Get started here.

approval

Community Alums
Not applicable

Hello Team,

 

I need to trigger the approval to Approval group , owned by and Managed By  for affected CIs and Affected Business Services if Outage is present. If it does not present then Needs to Trigger Notification Approval group, owned by and managed by on change Table while moving towards to request approval button.

 

Initially I created workflow and write script on that for approval. it was triggering approval. but now only condition added if outage is present.

 

I added Approval coordinator activity. 

 

ooo_0-1693838941639.png

 

 

 

Also added script below 

 

ooo_1-1693838941936.png

 

ooo_2-1693838942113.png

 

 

Now advise me we have to check If outage is present then needs to above approval. If it is not present, then send notification .

 

PLease help me on this?

5 REPLIES 5

Dariussiriuse
Tera Contributor

Hi! Could you please confirm to me that you are asking how to create the following logic?

 

If outage {
   then approval sent to:
       - approval group
       - owned by
       - managed by
}

else (if no outage) {
   then send notification;
   wait for condition (approval is requested);
}

 

Is this basically what you are trying to achieve? I'm afraid I'm not certain I fully understand the context you have mentioned, that's why I ask for this clarification.

 

Thanks,

Darius

Community Alums
Not applicable

yes you are absolutely correct here , in above I have created one workflow and Triggered approvals , however later requirement change like approval needs to be triggered to owned by , managed by and approval group for affected cis  are in change request ,if outage not there then notification needs ot be trigged to owned by managed by and approval group . 

 

I have written some code that is already attached in above screenshot. 

 

Please help me to resolve this. 

Dariussiriuse
Tera Contributor

Could you please provide a bigger view of the workflow you have done so far? It would be good to see the logic you have added to the workflow action you've shown above.

 

 

 

As for the theoretical logic, I think I would do this in the following way:

 

First, I'd use an if condition (before deciding to send approval) to determine the course of action. So, I would create a condition to identify is there is an outage or not in the first place. This might will probably require a scripted condition to check on your incident table. From what I know, when an outage happens, the affected CIs are linked to the incident created through the related list.

Without further details on what you have set up so far, I wouldn't advance in giving out possible solutions as they might not even be applicable to your setup; however, I can say for sure that I would look out for this outage incident and interact with the CIs in the related list (which should also have the business services you mentioned). 

 

Then only, if any are found, you'd of course send the approvals. Now I wouldn't use a coordinator necessarily for this, but I don't know the content of the workflow so I can't judge what you have done.

On the negative case, as already mentioned, then send off the notifications, and stop the workflow until approvals are then manually requested. 

 

Does this make sense?

Community Alums
Not applicable

Hello,

 

Actually we are developed workflow on change table , as we copied workflow from Change OOTB workflow and make as version two and Added one additional activity   Approval coordinator , Could you please explain how we can check on above script if outage is der then trigger approvals or else send notification