db97f7fa835dbf12c5ab | 2020-02-12 15:38:03 UTC | #1
Hello,
Would it be possible to create a data table in the script? The data would come through api from a CRM, the purecloud script could manage that data? modify it?
Thank you
tim.smith | 2020-02-12 15:43:11 UTC | #2
https://help.mypurecloud.com/articles/about-purecloud-data-actions-integration/
db97f7fa835dbf12c5ab | 2020-02-13 10:37:04 UTC | #3
Thanks tim, another question, from a data action we can call a substring? or is it only possible, string, numerical, boleano etc
Is it possible to operate the script without being called?
Jason_Mathison | 2020-02-13 14:13:46 UTC | #4
You can get a substring in a data action. Data actions support velocity macros, specifically you have access to the java string methods
https://help.mypurecloud.com/articles/velocity-macros-data-actions/#JavaStringMethods
including the java substring methods:
substring(int beginIndex) Returns a new string that is a substring of this string.
substring(int beginIndex, int endIndex) Returns a new string that is a substring of this string.
--Jason
db97f7fa835dbf12c5ab | 2020-02-13 14:41:04 UTC | #5
Thank you very much, if I want to validate by length it would be then, substring(int length = 9)?
Thnx
Jason_Mathison | 2020-02-13 14:51:51 UTC | #6
I am not sure by looking at your question, I would suggest experimenting with it. If you get to the point you have a data action that isn't working the way you want it to, create a new thread in the data actions room including an export of your data action, and the input or response that it is trying to process.
--Jason
system | 2020-03-15 14:51:53 UTC | #7
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: 7112