Creation of the notification from the variables of the maintain item

Lili12
Tera Contributor

 

Dear community,

I have created a Maintain Items with the variables
start date and end date of maintenance. These are entered by the users.
The goal is that when a service request is created, an email notification should be sent to a specific group after the service request has been created with the values from the variables (start date and end date of maintenance).
An outage is automatically created with the help of a flow.
I created a notification (sysevent_email_action) for this notification.
No values are pulled from the variables (start date and end date of maintenance).

 

Lili12_0-1768237855084.png

 

How can I incorporate the values from the variables into the notification?

Thanks for the support!

 

 

4 REPLIES 4

Karthiga S
Kilo Sage

Hello @Lili12 

 

Try using 

${current.variables.<variable_name>}

 

 

adityahubli
Tera Guru

Hello @Lili12 ,

 

This happens because catalog variables are not directly available to standard email notifications (sysevent_email_action) unless you explicitly reference them.

 

Since the request is created from a Catalog Item:

 Use Catalog Variables in Notification (Recommended)

If the notification is triggered on RITM (sc_req_item), use this in the email body:

Start Date: ${variables.start_date}
End Date: ${variables.end_date}

 

adityahubli_0-1768240253696.png

 

adityahubli_1-1768240279167.png

 

adityahubli_2-1768240309597.png

 

 

 

 

Alternatively you can Use Flow Designer (Best Practice)

Since you already use a Flow:

  1. Trigger flow on RITM created

  2. GET Flow variables
  3. Use Send Email action in Flow

  4. Map variables directly:

    • Start date =>Start Date

    • End date =>End Date

 

adityahubli_3-1768240433882.png

 

adityahubli_4-1768240531685.png

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya,

Technical Consultant

 

Hello @Lili12 ,

 

If my response helps you then mark it as shelpful and accept as solution.

Regards,

Aditya,

Technical Consultant

Ankur Bawiskar
Tera Patron

@Lili12 

if you are using flow on your catalog item then you can use "Send Email" flow action to send email and include the variable information.

Also in your current notification table should be sc_req_item

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader