Thanks Robert,
I tested this and what appears to be happening is that it is treating what I enter in the Call Common Module action as though it were receiving milliseconds and converting it to seconds when it gets consumed by the common module.
If I define it as 45 milliseconds in the in queue call flow, the common module converts it to 45 seconds.
If I give it 450 milliseconds in the in queue call flow, it translates to 7 min, 30 seconds.
What I think was happening originally is I gave it 45 seconds which it translates to 45000 milliseconds when it passes it to the CM, which it then consumes as though it were 45000 seconds.
This still feels like a bug to me in that if I go to the same action and swap it to an expression that 45 second value gets converted to MakeDuration(0,0,0,45,0) which gets interpreted correctly as 45 seconds when consumed by the Common Module.
Thanks,
Matt
------------------------------
Matt Riedl
AdaptHealth LLC
https://www.credly.com/badges/4823ffbe-4cfc-4552-bcb0-0506a0dc978c/public_urlhttps://www.credly.com/badges/4a90f46f-6c8e-4863-8e05-ea08701328ca/public_url------------------------------
Original Message:
Sent: 10-27-2022 13:06
From: Robert Wakefield-Carl
Subject: Duration variable in Common Module - Unexpected Value
Most times in Genesys Cloud are represented as milliseconds, so your 45 seconds is being sent as 45000 milliseconds, which if you convert to hours is 12.5 or 12 hours and 30 minutes. Somewhere along the line you need to convert back to seconds or just take the numeric and convert to a duration in your common module.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
https://www.Avtex.com
https://RobertWC.Blogspot.com
------------------------------