Henry.Zambrano | 2020-06-26 05:26:41 UTC | #1
Hi, is there a way to use a value from the input contract in the Translation map like we can use it in the Request URL Template? For example: to use the input value: ${input.TimeZoneId} (with value E.g "America/New_York")
here:
{ "translationMap": { "TimeZoneOffset": "$.entities[?(@.id==\"${input.TimeZoneId}\")].offset" }, "translationMapDefaults": {}, "successTemplate": "{\"AMERICANEWYORKOFFSETMINUTES\" : ${successTemplateUtils.firstFromArray(\"${TimeZoneOffset}\")}}" }
Instead of hard-coding the value "America/New_York" in the translation map. Is there a way to achieve this?
Thanks, Henry
Jason_Mathison | 2020-06-26 13:57:08 UTC | #2
There currently is no way to do this, however this request has come up a couple of times. Could you add an idea to https://purecloud.ideas.aha.io/ideas/ so we can track and prioritize this idea?
--Jason
Henry.Zambrano | 2020-06-26 19:45:54 UTC | #3
Thank you Jason for confirming. https://purecloud.ideas.aha.io/ideas/CLSELF-I-348
system | 2020-07-27 14:10:39 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 8122