Notification

pramn
Tera Guru

Dear folks,

can you help me how do i achieve below requitement of notification 

 

'Hello <user>'

We have completed your request number sd
Could you please verify..."

include app URL?

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@pramn 

To achieve the notification requirement in ServiceNow, where you want to include dynamic user information, request numbers, and an application URL, follow these steps:

 

Steps:

1. Create a New Notification:

   - Navigate to System Notification > Email > Notifications.

   - Click New to create a new notification.

 

2. Set Notification Conditions:

   - Define when the notification should trigger (e.g., on record update, insert, or when a specific field changes). For example, you might trigger the notification when a request is marked as "Completed."

   - Choose the Table (e.g., `Request`, `RITM`, `Task` depending on your need).

 

3. Define the Recipients:

   - In the Who will receive section, specify who should get the email. You can use the User field from the record (like `Assigned to`, `Requested for`) or specify individual users.

 

4. Compose the Email Body:

   - Use the following syntax in the Message HTML section for dynamic content:

 

HTML

 

5. Add Application URL:

   - If you need to include a custom application URL (e.g., an external system or portal), you can add it as a static or dynamic link. Example:

 

HTML

Hello ${requested_for.name},  <!-- This will pull the requested for user’s name -->

We have completed your request number ${number}.

Could you please verify the completion?

You can view the request by clicking the following link:

<a href="${URI_REF}">View Request</a> <!-- This will insert the dynamic link to the request -->
<a href="https://yourapp.com">Click here to access the app</a>

 

6. Save and Test:

   - Once your notification is set up, save it and trigger the event to see if the email sends correctly. You can manually trigger the condition or update the record to meet the notification conditions.

 

This approach will give you a personalized notification with dynamic data from ServiceNow.

View solution in original post

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@pramn 

To achieve the notification requirement in ServiceNow, where you want to include dynamic user information, request numbers, and an application URL, follow these steps:

 

Steps:

1. Create a New Notification:

   - Navigate to System Notification > Email > Notifications.

   - Click New to create a new notification.

 

2. Set Notification Conditions:

   - Define when the notification should trigger (e.g., on record update, insert, or when a specific field changes). For example, you might trigger the notification when a request is marked as "Completed."

   - Choose the Table (e.g., `Request`, `RITM`, `Task` depending on your need).

 

3. Define the Recipients:

   - In the Who will receive section, specify who should get the email. You can use the User field from the record (like `Assigned to`, `Requested for`) or specify individual users.

 

4. Compose the Email Body:

   - Use the following syntax in the Message HTML section for dynamic content:

 

HTML

 

5. Add Application URL:

   - If you need to include a custom application URL (e.g., an external system or portal), you can add it as a static or dynamic link. Example:

 

HTML

Hello ${requested_for.name},  <!-- This will pull the requested for user’s name -->

We have completed your request number ${number}.

Could you please verify the completion?

You can view the request by clicking the following link:

<a href="${URI_REF}">View Request</a> <!-- This will insert the dynamic link to the request -->
<a href="https://yourapp.com">Click here to access the app</a>

 

6. Save and Test:

   - Once your notification is set up, save it and trigger the event to see if the email sends correctly. You can manually trigger the condition or update the record to meet the notification conditions.

 

This approach will give you a personalized notification with dynamic data from ServiceNow.