Approval based on list collector value

kun1
Tera Expert

Hi All,

 

 I have created a variable as a list collector type and create a new table(contains value) which refer to the list collector variable. 

Requirement is to attached the two level approval. First approval is the Requested for manager(Done) and second one is depend on list collector value.(If i selected more than one value in the list collector then it go for multiple approval). How can we attach approval based on list collector variable?

 

 

16 REPLIES 16

Hi Harsh,

Any update!!

you can use switch activity on your workflow. and then based on the result you can set the transition to approval activity. 

before adding the switch activity store your list collector variable value in workflow scratchpad and then you can reuse it inside your approval activity. 

worfklow.scratchpad.lap = current.variables.variable_name;

HI Harsh,

 

I achieved this by a script written in "Approval user" activity but need one clarification.

I have selected  two list collector named A and B.

A have two approvers and both are end user

B have two approvers and both are end user.

Is it possible if A is approved by their respective user then for other user it say no longer required but for B it say requested?

you can use here wait for option  "Condition based on script" , here you will determine the result and based on that you can do further steps. 

 

go through the below link for further details. 

 

https://www.servicenowguru.com/graphical-workflow/approval-percentage/

 

https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/workflow-activities/r...

 

 

 

Could you please provide me some basic logic for this.

I selected three value (A, B and C) in my list collector.

A have two approvals and both are end user or from diff group.

B also have two approval and both are end user and from diff group

C have one approval.

For A two approval are attahed in RITM, If one approval approved it the for second it say no longer required but B and C approvers still in Requested state