Set approval if variable contain PROD

simaogomes
Tera Expert

Hello i need you're help to set up this workflow. 

For a brief explanation i have a list in an item with horsprod and prod variables if the variable selected contains prod must be subject to approval

can you give me an idea.

Do i have to create an action ??

1 ACCEPTED SOLUTION

simaogomes
Tera Expert

I found a solution you can see the image in the attachment 

View solution in original post

4 REPLIES 4

Mark Manders
Mega Patron

Since workflow is deprecated on Yokohama, skip the workflow part. Start with Flow designer.

Trigger it on catalog item (assuming it is a catalog item) and get the variables (standard flow action). You can do a check on the value of your variable to see if it contains 'prod' (I don't know if it is just a string variable (choice) or a sysid (reference), but that's something you probably know.
Put in an approval step if it contains PROD (with a wait for completion) and the rest of the flow will just continue if it doesn't contain PROD.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Ankur Bawiskar
Tera Patron
Tera Patron

@simaogomes 

I will suggest to use flow designer here instead of workflow.

1) Trigger the Flow on "Service Catalog"

2) Use "Get Catalog Variables" flow action

3) then use IF flow logic and see the value of variable

4) based on that decide for approval

Please start from your side and let us know

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@simaogomes 

do let us know if any further help required?

If not please close the thread by marking appropriate responses as correct so that it helps future members.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

simaogomes
Tera Expert

I found a solution you can see the image in the attachment