Help with submission of catalog item

Snowman15
Tera Expert

Hi all, 

I have created a catalog item with a flow at back. In the cat item I only have one single variable type "attachment". I would like to know if there is a way to hold requests submitted between 11:30 PM and 8:00 AM, so they are only processed outside of these hours. Thanks

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Snowman15 

you can use wait for duration in flow and check if the time is after 8am and before 11.30pm

If yes then proceed

what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@Snowman15 

you can use wait for duration in flow and check if the time is after 8am and before 11.30pm

If yes then proceed

what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar Hi,  I started the flow with a cat item trigger and and a get catalog variable action. If I use a wait for duration, then if yes is fine. But what if is false? I still need that request submitted from 8am.

@Snowman15 

you can use any of your existing schedule and make flow wait based on that schedule

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

maheshkhatal
Mega Sage

@Snowman15  Create a custom action and use GlideDateTime Api so that you manipulate the the timing  11:30 PM and 8:00 AM, and check for the different between the sys_update_on or sys_created_on and if it exceeds the timeline the you can resume wait for action meanwhile all the submitted requests in this time range can have state as hold(whatever you like). 

Thanks,

Mahesh.