Javeen_Shanavas | 2024-04-08 09:54:20 UTC | #1
Hi, is there any option in data action to create Action Contracts as a variable that holds the full text with spaces, since I use a variable as a string that does not hold spaces,my intention is to send third-party SMS to a mobile number with a custom text that contains paragraphs with spaces.
Jason_Mathison | 2024-04-09 19:22:46 UTC | #2
String inputs should be able to accept strings that contain spaces. Are you experiencing problems trying to use strings like that?
--Jason
Javeen_Shanavas | 2024-04-09 20:15:32 UTC | #3
Hi @Jason_Mathison , Yes i face a problem like that,you can see below error that I'm getting running on that action with message "Hello World" but its works fine when use message like "HelloWorld".also I test the webservice end which accepts spaces , but once I calls through data action am getting below error.
Jason_Mathison | 2024-04-10 12:37:31 UTC | #4
Are you attempting to use that string as part of the URL? In that case, you probably need to wrap the variable with $esc.uriEncode($input.variablename)
see https://help.mypurecloud.com/articles/velocity-macros-data-actions/ for additional details.
--Jason
Javeen_Shanavas | 2024-04-10 16:27:36 UTC | #5
@Jason_Mathison, Appreciate your support, it's works after changing to shared format.
system | 2024-05-11 16:28:31 UTC | #6
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: 25602