I am rather new in UCCX world especially in scripting, I have just created a basic script with a Hidden Sub Flow to another script which allows caller to enter their mobile number and then save it in a Document.
Now, I want to know how can we do the call redirect the mobile number which been saved in the .txt document?
Currently, as a workaround I created a variable Mobile1 and set a fix value (Please refer to attachment) but we're looking for a more flexible setup whereby call will be redirect to the last updated number in the document.
Document Name = Mobile_Number.txt
Rather than giving it a static value, simply pull the number from document that exist in subflow script and store it on some variable in local/original script. Then use Set step to map a string variable let's say NumberToCall to that variable you pulled from other script. then in Call Redirect step choose the NumberToCall variable under Destination
Set NumberToCall = "name of variable" storing the value of callback number"
Could you show some example of the coding on how to store the number in document into a variable? Sorry I am very raw in the scripting.
Below is my get Number script, how can i store the value enter to the sub path Mobile1 in the MobileNumber.xml document?
Redirect function in the Main Script, how can I pull the value of Mobile1 in MobileNumber.xml?