Abhinesh,
You can leverage the GetCurrentDateTimeUtc() to set the initial time to a unique variable, with an additional AddMinutes(5). Then enter the loop with an "unlimited" loop integer like 100. Play your Text to Speech prompt then update a different variable with the current date time without +/- modifications. Then evaluate the two $Task.InitialDateTime >= $Task.CurrentDateTime. In the true path add an exit loop object. In the false path, do nothing. It should repeat until the $Task.CurrentDateTime is equal to or greater than the $Task.InitialDateTime.
Here are the particulars.
------------------------------
Carlos Albor
Senior Principal PS Consultant
------------------------------
Original Message:
Sent: 11-17-2023 14:37
From: Abhinesh Gupta
Subject: How we can run loop for specific time, like for 5 min or 10 mins.
Hello Jose,
I am looking for inbound flow, I need to play a particular prompt for 'X' minutes using loop, as soon as 'X' minutes gets completed, loop will be ended.
------------------------------
Abhinesh Gupta
Alight Solutions LLC
Original Message:
Sent: 11-17-2023 00:55
From: Jose Carlos Albor
Subject: How we can run loop for specific time, like for 5 min or 10 mins.
If you're referring to the in-queue flow and setting a wait time before doing something, you'll want to leverage the hold music object and set the time there.
You can set hold music before or after a loop starts.
------------------------------
Carlos Albor
Senior Principal PS Consultant
Original Message:
Sent: 11-16-2023 09:51
From: Abhinesh Gupta
Subject: How we can run loop for specific time, like for 5 min or 10 mins.
Can someone help
------------------------------
Abhinesh Gupta
Alight Solutions LLC
Original Message:
Sent: 11-16-2023 06:55
From: Abhinesh Gupta
Subject: How we can run loop for specific time, like for 5 min or 10 mins.
How we can run loop for specific time, like for 5 min or 10 mins.
And how to play a specific prompt for specific time.
#ArchitectureandDesign
------------------------------
Abhinesh Gupta
Alight Solutions LLC
------------------------------