Provider Notification Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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.
Regards,
Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Will it(variable) reflect in the card like below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
@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.
Regards,
Sanjay