approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 07:49 AM
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.
Also added script below
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 08:09 AM - edited 09-04-2023 08:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 08:27 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 09:09 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 10:23 PM
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