cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
481
Views
0
Helpful
2
Replies

Document variable

I create a script which calls another script via subflow. The subflow script opens an xml doc, doing some checks and then return back to main script a boolean value.

What I want to do, is to pass to the subflow script a different filename each time. Is it possible to define the value of Document variable with another variable? Like DOC[variable]?

2 Replies 2

Jonathan Schulenberg
Hall of Fame
Hall of Fame

Yes but not as you have shown it there. You can use the Create File Document step within your subflow script. The Filename parameter can be a concatinated string representing the XML document location in your document repository. Example:   "DOC[" + myFilename + ".xml]" where myFilename is the String-type variable you mapped into the subflow. Be careful about what folder you store the file in if you are using multiple languages. If the document should not change across all caller languages you may want to place it in the default folder. The MIVR engine will try that if it does not find a match withing the contact's language-specific folders.

Thanks Jonathan for your help.

I changed my subflow script as you described. When I debug, I have an error that the system cannot find the file specified.

I load the file in Document\Default location.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: