- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2023 06:17 AM
Hello All,
In the workflow, after a task completion, I am creating a record in a change request table,
So, can someone tell me how to navigate the user to the created change request. Because he then goes to the form and clicks on Request approval.
Regards,
Lucky
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2023 08:03 AM
@Lucky1 ,
I have already posted in one of my replies
Steps :
You can remove default value on the URL field
In your create task workflow activity , script section have this logic
var chg = current.getDisplayValue('change_request'); // this will give you the change number
chg = " This CR is created from the"+" "+chg
//in the URL after u r passing "^u_cmdb_update_from_ctask=yes" add ^short_description=chg
//example url looks below and update the URL field , you can see chg is passed without quotes and its awlays dynamic
current.urlfieldvalue ="/change_request.do?sys_id=-1&sysparm_query=chg_model=007c4001c343101035ae3f52c1d3aeb2^type=normal^short_description="+chg +"^EQ&sysparm_use_polaris=true&sys_target=change_request&sysparm_referring_url=change_request_list.do%3Fsys_id%3D-1%26sys_target%3Dchange_request%26sysparm_fixed_query%3D%26sysparm_group_sort%3D%26sysparm_query%3D%26sysparm_target%3D%26sysparm_view%3D";
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2023 10:14 AM
Hi @Lucky1 ,
Few clarification
a)which task are you closing is it Problem/catalog task??
b)How do you wanna navigate the user to CR , you wanna redirect user upon completion of the task? or you wanna show the CR link on top of the task?
Would you shed light on these??
Thank you,
Hemanth
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2023 02:35 PM
Hello,
Can you just clarify what the requirement is here?
After task closure are you looking to redirect the user or add a link to the closed record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2023 11:37 PM
Hi Hemanth, Robinso,
In the workflow, we are creating a change task.
So, in the Change task, there is a field (Select box - Yes and No choices)
So, once the user selects Yes, I am showing a change request URL.
Note: I have created a Field on Change request form (true/false type, CMDB CR (u_cmdb_cr))
So, here the requirement is on the above mentioned Ctask, if the user selects yes, I am showing up a URL right?
So, once the user clicks that URL it is navigating to new Change request form but AT THE SAME TIME I want to check that CMMDB CR choice field to true.
(So on the change form, the field CMDB CR (u_cmdb_cr) field should become true only when the user opens the change form by clicking that URL on change task form.
Regards,
Lucky

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2023 05:50 AM
Hi @Lucky1 ,
Your explanation is confusing
let me know if we understood this right
1)you have a field on the ctask (yes/No)
2)you have a field on the CR CMDB CR (yes/No)
you are creating a ctask in the workflow (change workflow) > if a user selects "Yes" you show the change request URL(which URL are you showing here?? the original change request URL???)
you should only show the URL when "Yes" on the Ctask & "Yes" on the cr CMDB CR field??? is this the requirement?
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025