logged in user on mail template

scottjus82
Kilo Guru

Morning all.

 

I have set up a template on the incident table so when clicking the email icon the body contains the description as well as the name of the analyst the ticket is assigned to, their title and email address. I have had a request to change that so the signature element of the template is the person who is logged in clicking the email as its not always the assigned to person. could anyone advise what I change my script to? currently its a simple field mapping as per below.

 

Incident Number: ${number}

Description: ${short_description}

UPDATE

 

 

 

 

 

 

 

${assigned_to}

${assigned_to.title}

${assigned_to.email}

 

Any thoughts?

7 REPLIES 7

Just to follow up on your question, I have tried with several users all of which have the user Id (user_name) field populated.


floriank
Tera Contributor

Hi everybody,

I'm looking for the same solution as asked above.

The provided script works in the client template body almost as wanted. But it gives back the User ID instead of the name (First Name and Last Name) of the logged in user.

Can anybody tell me what to change in the script to make it work as it is supposed to?

 

Kind regards

Florian

@floriank, 

 

You might want to ask the same question in the correct forum. ITOM is not the correct place to ask an email question. Try opening a new question over in the NOW Platform forum and you will get support there.