How to check if an approval is created from workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2016 11:55 PM
Hi all,
Is there a way to find out if an approval is either created from workflow.
My task is that if an approval is created from workflow, i need to prevent it from creating.
If the approval is created manually then i can allow it.
For Ex: An approval is created for an approver A through workflow. In this case i need to prevent it.
If the same approval is created manually, then it needs to be created.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2016 12:04 AM
Hi Dinesh,
I suppose creating approval activities is generally done through workflows in serviceNow. You can check if it is created or not by going on the attached workflow and checking the current status of the workflow, i.e where it is stuck at present.
By the way what sort of manual approvals are you referring to here ?
Regards,
Abhinav
P.S : Like, mark helpful or correct based on the impact of the answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2016 12:08 AM
Manual approvals like going to the approval related list --> Click on Edit --> select the approvers --> click on submit.
It is more like adhoc approvals. i need to allow adhoc approvals but restrict the approvals from workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2016 12:31 AM
Hi Dinesh,
In Eureka, when we go to the approval related list, then we have an option in slush bucket as created by, move it from available to selected, there you will find that all the approvals created by workflow show created by as "system". I suppose this will be helpful in your case.
Regards,
Abhinav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2016 12:52 AM
Abhinav,
Thanks for the reply, but in the workflow activity the approvals are being created through script. Hence in the created by field contains my name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2019 09:23 PM
Hi
For your ad hoc approvals do you have a notification that goes out to the person who created the ad hoc approval once it is approved. If so CAN YOU PLEASE HELP ME. I am having problems with this PLEASe