- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 12:22 PM
Hello,
I running into an issue with a record producer. Would I be able to add a redirect once the record producer form is submitted? Have the submitter redirected to the record that was created. I did not create this record producer. I have it selected and scripted but it does not work.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 01:49 PM - edited 04-03-2024 01:50 PM
Hello try this one:
var instance = gs.getProperty('instance_name');
producer.redirect = "https://" + instance + ".servicenow.com/nav_to.do?uri=u_contract_master.do?sys_id=" + current.sys_id;
Please Mark my Answer Helpful & Accept as Solution, If this solves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 12:33 PM
Will this not work
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 07:53 AM
Hello AG,
I have redirect to go to the task record being generated. for some reason, it's not working. I did notice some code in the record producer. Thank you for your response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 08:31 AM
Hello @Wyatt Fudal1 ,
Can you try with this once.
var instance = gs.getProperty('instance_name');
var url1 = "https://" + instance + ".service-now.com/sp?id=sp_ticket&is_new_order=true&table=<your table name>&sys_id=" + current.sys_id;
producer.redirect = url1;
Please Mark my Answer Helpful & Accept as Solution, If this solves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 10:54 AM
Hello Appanna,
After I submit the record producer it brings me to the task created but I'm still in the portal. Would there be a way to bring the submitter to the record in the table?