cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
483
Views
4
Helpful
2
Replies

Branching out to another script

junp14
Level 1
Level 1

How do you call a script from a CRS script? I am trying to give the caller option to "branch out" to another prompt (script) in case they made a mistake calling this prompt. Please advise, thanks.

1 Accepted Solution

Accepted Solutions

Chris Deren
Hall of Fame
Hall of Fame

Use the "subflow" step.

Chris

View solution in original post

2 Replies 2

Chris Deren
Hall of Fame
Hall of Fame

Use the "subflow" step.

Chris

Ruud van Strijp
Level 1
Level 1

And don't forget to map variables. By doing this you say that variable X in the subflow script, will be the value of variable Y in your main script. And it can also work the other way around.

For example, we have added a variable to our script that defines the opening and closing time of the CSQ. Since we have bad experiences with the Time-variable, we use a string variable "8:00" as opening time. We call a subflow to have these variables split to 8 hours 00 minutes. So we've mapped the "8:00" string variable to a String var in the subflow script. Then the subflow script splits the String, calculates each hour and minute seperately and then makes the boolean 'isOpened' true or false. This boolean is then mapped to a boolean variable in the main script.

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: