How to send xMatters with UserID in the Message

Not Yet Reviewed

Hi,

Is it possible to send a Message with UserID?
The message should somewhat look like below.

Hi Firstname Lastname,

Your UserID is {message}

I tried ${person.targetName} but it did not work.

0

Comments

3 comments
Date Votes

Please sign in to leave a comment.

  • Hey Aris - Just to clarify, are you trying to build this in the email message editor, where a property named "message" would be populated by user ID?

    0
  • Aris, the answer is possibly. 

    As it is, no, you can't select the userid from that message template screen as you found. I see an enhancement request coming here, but can you explain the use case in a little more detail? What are you trying to do? Why do you need the user id?

    With that said, it is possible to use an event property to hold the user id. This only works if you know the user being targeted when you create the event. For example, if you are generating this event through the API, you could set the recipients array but also add a new property called "user id" or something and populate that with the user's id. Then you can drag the user id property onto the form in your screen shot just like any other property. 

    As I mentioned, this only works if you are targeting a user at the event creation time. If you are targeting a group, this won't work because we don't know the user's id at event creation time, and we can't update the notification before it actually goes out to the user. 

    0
  • Thanks Travis. The purpose is for user maintenance. We will be sending messages to those accounts that did not have any activities for the past 18 months. Some users are using Non-Human IDs and it is much easier for the recipients to provide the User ID in the message instead of First Name and Last Name.

    0

Didn't find what you were looking for?

New post