ServiceNow question - custom attributes

I have created a custom attribute called ‘SDNotes’ which i’d like to pass through ‘service desk notes’ to the service now incident description.

I’ve added it in like this but i’m not getting the relevant information through. Can this be done?

Please note i’ve tried both $ServiceDeskNotes$ and $SDNotes$ but it just brings it through like that.

Try $HOST_SDNOTES$.

The variable in the notification script is actually called NOTIFY_HOST_SDNOTES, i.e. NOTIFY_HOST_ plus the ID of the attribute in uppercase. But from your screenshots it appears that you can/must drop the NOTIFY_ prefix when configuring the rule.


As a little background: when a notification script is called, then all information about the event is passed to it in environment variables. And almost all of them are prefixed by NOTIFY_. For example, the variable HOSTPERFDATA in your rule is actually called NOTIFY_HOSTPERFDATA etc.
It looks like when configuring your rule you can drop that NOTIFY_ prefix because checkmk adds it automatically when calling the notification script. And the HOST_ infix in my suggestion indicates that it is a host attribute (as opposed to a service attribute).

Thanks, is there anyway of separating the text to different lines when it comes through in Service Now?

I’ve tried using /n but this doesn’t work.

No idea. I would try \n or \\n (not /n) .

I meant I tried \n but I will try again

No this doesn’t work I tried both what you suggested.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.