Need help with workflow script if condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 07:57 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 08:03 AM
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.
Once you have it on the workflow canvas, you can wire up the Yes/No outputs where you like;
Recommended reading:
Workflow Concepts - ServiceNow Wiki
Creating a Workflow - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 08:15 AM
Thank you so much for the quick answer and it's helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 11:16 AM
You are welcome Venkat. Let me know if that answers your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2016 05:12 AM
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