ToString(GetCurrentDateTimeUtc()) is not consistent between different flows

ToString(GetCurrentDateTimeUtc()) in a voice flow will correctly return a datetime string with milliseconds.
Like "2022-05-05T08:18:04.568Z"
However, the same function in an email flow will ALWAYS return 000 as milliseconds
Like "2022-05-05T08:18:04.000Z"
Is there any good reason for this? It's frustrating as I rely on milliseconds as a random number generator.

Hi @samjan
You can open a case with Care where they can determine if this is a defect that needs to be fixed.

Hello,

As you mention random number, I just noticed this in the Features coming soon - Genesys Cloud Resource Center (May 18th).
I don't have access to it myself yet so I don't have more details than what's in the release notes.

Use random functions in Architect decision actions

Administrators and contact center managers can now use random functions as building blocks in Decision actions. The Random function generates a random decimal value and the RandomInt function generates a random integer value. These functions make it easier to steer calls to different paths based on the returned value. This feature requires one of the following subscriptions: Genesys Cloud User 1, Genesys Cloud User 2, or Genesys Cloud User 3.

Regards,

That is awesome news, thanks for making the reply. Cant wait for that to be implemented.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.