Irina | 2021-12-22 10:23:20 UTC | #1
We need to call a custom data action from outbound wrap-up call rule in case a customer cannot be reached (busy or no answer). The data action performs POST request to the third-party web service that cannot be changed, and one of the web service required input parameters is current date time. I didn't find how to pass current date time from the outbound call rule (it is possible to pass only contact list parameters, call analysis result, or agent wrap-up), so I thought, may be it is possible to generate/get current date time in request body of data action. Is there a way to do this?
Jason_Mathison | 2021-12-29 02:44:23 UTC | #2
It doesn't look like it is currently possible to generate the date/time in a data action, but it does look like this is something that could be enabled. Take a look at https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/DateTool.html And see if it would cover your needs. If so, please submit it to the ideas site: https://genesyscloud.ideas.aha.io/ideas
You could also/instead submit an idea to make the date/time information be available as part of the outbound rule.
In the mean time you could implement this in a lambda and call that as a lambda data action.
--Jason
Irina | 2022-01-20 16:35:41 UTC | #3
Hi Jason, Thanks for your answer.
Finally we decided to call from the outbound wrap-up call rule the data action A that executes a workflow. And, from this workflow, call the data action B that calls the third party web service. One of the data action B input parameters is current date time.
Jason_Mathison | 2022-01-21 12:32:50 UTC | #4
Hi Irina,
I'm glad you could find a solution!
--Jason
system | 2022-02-21 12:33:26 UTC | #5
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: 13023