Provider Notification Content

HARSHA GOWDA R
Tera Contributor

Can i add the variables that was created in the catalog item inside the record card type thought script in sys_notification_va_content table
Screenshot 2025-09-29 104204.png

HARSHAGOWDAR_0-1759123218977.png

 

5 REPLIES 5

sanjay02
Tera Guru

@HARSHA GOWDA R ,

Yes, this is possible. Catalog Item variables are stored separately from the RITM record,you can fetch them through script.

You’ll need to query the sc_item_option_mtom table (which links RITM to variables) and then get the values from sc_item_option. From there, you can pass them into the card JSON template.

If this resolves your query, please mark the response as helpful/accept the answer so it can assist others as well.

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

Regards,
Sanjay

Ankur Bawiskar
Tera Patron
Tera Patron

@HARSHA GOWDA R 

in the above script you shared query RITM with that sysapproval and grab the variable value

something like this and then later use it

var gr = new GlideRecord("sc_req_item");
gr.addQuery("sys_id", current.sysapproval);
gr.query();
if (gr.next()) {
    var variableValue = gr.variables.variableName.getDisplayValue();
}

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

Will it(variable) reflect in the card like below

HARSHAGOWDAR_0-1759125254796.png

 

@HARSHA GOWDA R 
Your current script is for header customization. If you want to customize the content, switch to the Message tab, click Advanced, and implement the above logic there. The changes will then reflect in the content.

sanjay02_0-1759127228640.png

 

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

Regards,
Sanjay