- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 06:19 PM
Hi everyone,
I'm currently working on a workflow in Flow Designer within ServiceNow, and I'm using the Send Email action to notify users about certain events. I'd like to include the current date and time in the email body dynamically.
Could someone guide me on how to achieve this? Is there a specific variable or function I can use within the email body field of the Send Email action to automatically insert the current date and time when the email is sent?
Your insights and assistance would be greatly appreciated!
Thank you in advance.
Best regards,
Marium
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 11:34 PM - edited ‎03-12-2024 11:35 PM
Hi @Marium_07,
You can achieve this using flow variables.
Please follow the below steps -
1. Create a flow variable of date/time type.
2. Set the flow variable using flow logic, set the variable before send email action.
In the script section of set flow variables use below code -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 11:34 PM - edited ‎03-12-2024 11:35 PM
Hi @Marium_07,
You can achieve this using flow variables.
Please follow the below steps -
1. Create a flow variable of date/time type.
2. Set the flow variable using flow logic, set the variable before send email action.
In the script section of set flow variables use below code -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 07:55 AM
Hi @Anirudh Pathak ,
I wanted to extend my sincerest thanks for your assistance. I truly appreciate the time you took to help me resolve the issue.