- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2025 02:25 AM
Good Morning
I have a scripted business rule that i believe should run when a RITM with a Specific Short description is created/ updated and it should pull a variable for Start Date ( start_date) in to a field on the RITM Form. however it isn't working
can anyone help? This is the Script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2025 01:46 PM
Hi @sarahjane19,
You can just use "current.variables.start_date".
current.variables.<variable_name> will usually fetch the variable value from the RITM form.
Just use:
current.<field_name> = current.variables.<variable_name>
This will set the value of the variable which is Start Date here to the RITM field.
Please mark as Helpful and if this worked for you kindly mark this reply as the Solution!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2025 01:46 PM
Hi @sarahjane19,
You can just use "current.variables.start_date".
current.variables.<variable_name> will usually fetch the variable value from the RITM form.
Just use:
current.<field_name> = current.variables.<variable_name>
This will set the value of the variable which is Start Date here to the RITM field.
Please mark as Helpful and if this worked for you kindly mark this reply as the Solution!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2025 10:37 PM
Hi @sarahjane19
You can access all the varaibles from the RITM/SC TASKS using the below format.
current.variables.<catalog variable name>
For your scenario, it would look something like this
current.variables.start_date
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2025 11:12 PM
you can use this logic to access the variable value and set in the RITM field
// give the field name and date variable name
current.setValue('dateField', current.variables.dateVariableName);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader