How to check if an approval is created from workflow

dinesh91n
Tera Expert

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.

10 REPLIES 10

a_anshu
Giga Expert

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.


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


a_anshu
Giga Expert

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


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


kiranbahl27
Kilo Contributor

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