Flow Designer help

huyjor
Tera Contributor

Hello Team

I have a registration form for a user who will register for an social event. Each of the record has different event start dates. I want to send an notification a day before the start date. I'm trying to figure out how to do this in flow designer. Hopefully i can get help from people who are more experience than me. Or they have some type of projects that were similar to what I'm doing. Thanks your help. 

 

I'm playing around with the logic. 

Trigger : Service Catalog

   Step 1: Get the Catalog variables 

   Step 2: Create record to the table 

   Step 3: look up the registration table for the start date (i tried this and couldn't pull anything out from the record/table)

  I'm trying to use the flow logic for each reach loop. (but i couldn't pull anything out). 

  This is where i'm stuck at. 

 

4 REPLIES 4

Sumanth16
Kilo Patron

Hi @huyjor ,

 

You can use the Flow Designer for it and schedule it on a daily basis.  Then your action would be to find the records where you limit the condition to more than 6 days and less than 8 days, so only the 7 days are in scope.

 

You can then setup your notification (you can use the record / data pill it is related to) directly in the Flow Designer or trigger an event and setup your notification the 'old' way via the notifications.

 

Screenshot 2024-03-04 at 11.45.11.png

 

The below article will be helpful related to flow designer:

 

https://www.servicenow.com/community/now-platform-articles/flow-designer-demo-automate-knowledge-exp...

 

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

huyjor
Tera Contributor

Thanks. If I put the start date relative before the 1 day ahead means it will send the notification 1 day before the start date right ? 

 

yes @huyjor .

Ramesh_Naidu
Mega Guru

Hi @huyjor ,

 

You can create an Action to schedule the notification by using the gs.eventQueueScheduled(). And call the action in the 3rd step and pass the start_time variable as input.

 

example script in Action:

var processTime = new GlideDateTime(start_time);

processTime.addDaysLocalTime(-1);

gs.eventQueueScheduled(<event_name>, now_GR, parm1, parm2, processTime);

 

Thankyou.