when we use the ${document_id.sys_class_name} ${document_id.number} this syntax in Notifications

Sirri
Tera Guru

Hi All,

 

Please let me know when we use the below syntax and  please explain the script of this as per the below snip.

${document_id.sys_class_name} ${document_id.number}.

 

Sirri_0-1709740016508.png

Thank you

5 REPLIES 5

Maddysunil
Kilo Sage

@Sirri 

  • ${document_id.sys_class_name}: This placeholder is likely used to represent the class name of a document in the ServiceNow system. When the notification is sent, this placeholder will be replaced with the actual class name of the document associated with the notification.

  • ${document_id.number}: This placeholder represents the number or identifier of the document. Similar to the previous placeholder, when the notification is triggered, this placeholder will be replaced with the actual number or identifier of the document.

So, for example, if you have a document in ServiceNow with a class name "Incident" and a number "INC00123", the notification will render as:

Incident INC00123.

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks

Hi @Maddysunil ,

 

As per your example, please let me know instead of placeholder( ${document_id.sys_class_name} ) can we use directly as Incident?

Thank you

@Sirri 

Yes, if you know that the document class name will always be "Incident", you can directly use "Incident" instead of the placeholder ${document_id.sys_class_name}.

So, instead of:

${document_id.sys_class_name} ${document_id.number}

You can simply use:

Incident ${document_id.number}

 

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks

 

Hi @Maddysunil ,

 

Thank you for your response.

please let me know how can we check this is placeholder name.

 

Thank you