Approval send to selected user in catlog Item

nani1
Tera Contributor

Hi all,

I need to sent approval for  selected user in CatLog item.

Example: 1)we have a field called " who will approve" drop down reference field.

2)If any requested user  select random user from above choice field and submit the form.

3)An approval  should trigger to the selected user. "

Is an script we need to add in workflow for that? 

3 REPLIES 3

Vishwa Pandya19
Mega Sage

Hello,

 

If you are using Flow Designer then you will first have to get all catalog variables by using the "Get catalog Variables" action.

Then the next step would be to use the "Ask for approval" action and in the approver field you will have to drag and drop the "who will approve" field value from step 1 - get catalog variables.

This will trigger approval to the user mentioned in the field.

 

If you are using workflow editor, then you will use the "Approval - user" activity. Under that you will check the advanced checkbox and input the below code.

 

answer = [];
answer.push(current.variables.<variable name>)
 
If my answer helped you in any way please mark it as helpful or correct.

Hi I try below script in workflow for approval. User it wont work 

When the RITM no approvals being sent its skipping 

nani1_0-1712579210519.png

 

BHAGYESH BHOSAL
Tera Expert

Hi @nani1  , 

 

You can use Approval Action to get approvers and no need of scripting you can decide the user from the catalog item as approver ,

 

If you are using Flow designer , you can use "Ask For Approval" action and it is easy to use .