Request Email notification wait condition

Community Alums
Not applicable

I want to send the email notification after 1hr from Status change to closed. is there any way i can add wait condition to hold for email notification for 1hr 

SurajPS_0-1672992022634.png

 

2 REPLIES 2

Hari Prasath
Tera Guru

Hi @Community Alums 

 

You have to use flow designer for achieving your requirement.

 

Flow designer action:

Trigger-> Created or updated 

Table-> Change Request

Condition-> State is closed 

 

Action-> Wait for condition 

Set the time for 1 hour 

 

Action- Create record 

Table- Event

Instance- Your change record 

Name- Event name

Parm 1- Receiving person

Table- change_request

 

Note: Create an event and trigger the notification with that event. In the notification who will receive select the Parm 1 and send to event creator.

Reach out if you face any issues.

 

Please mark the answer as helpful if it helped you accordingly!

 

Thanks,

Hari

 

mdash
Giga Guru

Hi Suraj,

You need 4 things here.
1. Store the time when the status was changed to Closed. Either you can store in a variable or if you are calling it directly from a business rule, then you can use current timestamp at that time.

2. You need to add one hour to the above date/time value.
3. You need to pass the date/time from steps 2 to a scheduled event, which will be triggered exactly at the mentioned time.
The syntax is like below. You need to pass that value in the 5th parameter.
gs.eventQueueScheduled('<NAME OF YOUR EVENT>', current, 'parm1', 'parm2', <YOUR DATETIME VARIABLE NAME>);
4. Create/update your email notification to be triggered based on above event.

Please have a look at similar discussion and you should be able to achieve this. 

Please mark my answer as correct/helpful based on its impact.
Thanks