delay inbound action by 1 hour

Shobha N
Tera Contributor

Hi All,

Greetings for the day!!

We have a inbound action which needs to be delayed by 1 hr before it gets processed.

1) gs.sleep didn't help, and it is recommend not to use it. 

2)Found a BR on community but as this is an inbound action not sure what need to be updated for "event_name";

var when = new GlideDateTime();

var delay = new GlideTime();

delay.setValue("00:01:00");

when.add(delay);

gs.eventQueueScheduled("event_name", current, "", "", when);

 

it would be helpful, if anyone can suggest on this.

 

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron
2 REPLIES 2

Mike_R
Kilo Patron
Kilo Patron

Maybe use flow designer instead

 

Mike_R_0-1668609032259.png

 

Shobha N
Tera Contributor

Hi Mike,

thank you for the fabulous answer. I really appreciate that

 

Finally, it was decided to write a schedule job and reprocess the mail instead of adding wait time to inbound action.

 

Regards,

Shobha