- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2019 03:53 AM
Hello All,
I have a catalog form. On the submission of this catalog form I have create a normal change request and assign values to it through script. Could you please someone guide me?
Thanks
Bala
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2019 04:15 AM
Hi Bala,
Sample script here
var gr = new GlideRecord('change_request');
gr.field1 = current.variables.<variableName1>;
gr.field2 = current.variables.<variableName2>;
... and so on
gr.insert();
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2019 02:40 AM
Hi Bala,
Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2019 03:20 AM
Hi Bala,
I think by mistake you didn't mark the actual answer as correct which had the sample script.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2019 04:33 AM
Hi
you can create workflow and add the script in run script activity
to create a normal change
Note: Please mark reply as CORRECT if it has answered your question OR mark it as HELPFUL if it has guided you towards the solution
Thanks
Chandu