- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2020 11:28 AM
How to create a change task automatically when a particular category is selected on Change Request form?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2020 11:48 AM
Hi,
Go to WF editor.. open your change request workflow depending on type.
In that depending on your process.. drag if condition activity. In that add code like below
answer = ifScript();
function ifScript()
{
if(current.category == "YOUR CATEGORY"){
return 'yes';
}else{
return 'no';
}
}
Then for yes.. drag create task activity.
Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.
Regards,
Asif
2020 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2020 11:35 AM
You should configure workflow on change request table to create change task based on subcategory.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2020 11:37 AM
Hi Sachin,
Can you please help me with the workflow on Change request table?
Thanks,
Sasha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2020 11:48 AM
Hi,
Go to WF editor.. open your change request workflow depending on type.
In that depending on your process.. drag if condition activity. In that add code like below
answer = ifScript();
function ifScript()
{
if(current.category == "YOUR CATEGORY"){
return 'yes';
}else{
return 'no';
}
}
Then for yes.. drag create task activity.
Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.
Regards,
Asif
2020 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2020 11:52 AM
Use Workflow Editor to create workflow and use below activity in workflow to create change task
Regards,
Sachin