How to set variable of what the current form hass?

Joshua Comeau
Kilo Sage

I am trying to make this scheduled job script 

based on what is entered on current unique scheduled job to be dynamically set the variable when its scheduled

each schedule job has its own descriptions

currently the way I have the code it will only enter what I type in it I want them to carry over 

current script:

JoshuaComeau_0-1699532010228.png

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Joshua Comeau 

you cannot access that unless you query scheduled job table with scheduled job record sysId and then pick the field value using GlideRecord object

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Can you help me write the code as I am unsure on how to do this?