The CreatorCon Call for Content is officially open! Get started here.

Notification content

HARSHA GOWDA R
Tera Contributor

Can we dot-walk a variable, such as requested_for, in the sys_notification_va_content table script so that it appears in the record card immediately after the Approver field?

HARSHAGOWDAR_0-1758995482876.png

 

HARSHAGOWDAR_1-1758995482832.png

 

 

4 REPLIES 4

kaushal_snow
Mega Sage

Hi @HARSHA GOWDA R ,

 

Yes, you can dot walk  requested_for in the sys_notification_va_content table script to display it in the record card immediately after the Approver field. To achieve this, ensure that the variable is part of the record variable set and that you're using the correct syntax to access it. For instance, if requested_for is a reference to the sys_user table, you can use ${current.variables.requested_for.name} to display the user's name. However, be cautious when dot walking through variables, as it may not always work as expected, especially if the variable is not directly accessible from the current record. In such cases, consider using a Script Include with GlideAjax to fetch the necessary data server side and pass it to the notification template....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

Bhuvan
Giga Patron

@HARSHA GOWDA R 

 

Follow below article to get variable details if it is not available already as part of dot-walking existing field(s)

 

https://www.servicenow.com/community/virtual-agent-nlu-forum/trying-to-display-ritm-variables-in-a-v...

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

Ankur Bawiskar
Tera Patron
Tera Patron

@HARSHA GOWDA R 

not possible to dot walk and grab RITM variables since your notification is on Approval table.

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

@HARSHA GOWDA R 

Hope you are doing good.

Did my reply answer your question?

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