Need help with workflow script if condition

ven1
Kilo Contributor

I need to define the workflow for 'if' condition when user selected "Yes" or "No"

Example : If user needs PC and he/she selects "YES" workflow goes to next level and selected "NO" workflow has to completed.

Can any one help me for the workflow and script.

Thank you.

5 REPLIES 5

Chuck Tomasi
Tera Patron

Hi Venkat,



Not knowing a whole lot of technical details, your If condition in the workflow is going to look something like the image below. I made the assumption that you have a catalog item variable called 'pc_needed' that is a true/false checkbox. Adjust as necessary, this was not meant to work as-is and is untested.



find_real_file.png



Once you have it on the workflow canvas, you can wire up the Yes/No outputs where you like;



find_real_file.png



Recommended reading:


Workflow Concepts - ServiceNow Wiki


Creating a Workflow - ServiceNow Wiki  


Thank you so much for the quick answer and it's helpful.


You are welcome Venkat. Let me know if that answers your question.


Hi Venkat,



Let me know if that answered your question. If so, please mark it as correct so that others with the same question can find it quickly in the future and that it gets removed from the Unanswered list. Thank you