How to play the Day of the week for the given date without using any if condition?
Example: Today is 01/01/2021 - Friday
When I use the below function, I'll get the return value is 6 i.e Friday.
Then I need to use if logical condition to check the return value and play the Day of the week accordingly. Could you please suggest any function or alternative way to play this?
At runtime this should play back just the day of week only for the submitted DateTime value.
The runtime data playback support for this takes the day of week it gets from the submitted DateTime value and will then play back the appropriate daysofweek_<blah> system prompt ( i.e. daysofweek_tuesday ) for the current language in which the flow is running. Remember, this requires that the current language in which the flow is executing supports runtime data playback. You can see if a language supports runtime data playback in the Supported Languages node of the call flow if you click on it and then hover over the information icon next to a flow supported language name in the supported language table. As with any function that requires runtime data playback support, if the flow attempts to call the function in a language that does not support runtime data playback, Architect will have a validation error.