03-02-2021 05:25 PM
Hi
I been reading about passing variables between scripts and ended up at this discussion https://community.cisco.com/t5/contact-center/uccx-11-5-session-data-issue/td-p/3734009 explaining that you should not use the get session info and mapping id etc.. and should use the get contact info step instead as the unique call session last for 30 minutes.
@Jonathan Schulenberg said that he should use the Get contact info step on all scripts, but i am unclear on how to use that step to pass the information to application/script 2 or how to reference it on the second script.
In my situation i have a script 1 that is used by 300 different applications and they all have a parameter for a voicemail pilot number which is unique to each application. I want to pass that parameter over to script 2 after a redirect. In that second script/app i will have a standard prompt for all 300 apps and then send the caller to the corresponding voicemail number.
Thanks
03-03-2021 05:19 AM
You can get the triggering contact's session to store/retrieve the String variable for the voicemail pilot number. There is no need for a mapping ID here because the triggering contact's session ID is retained as they a transferred amongst IVR applications. (Mapping IDs are often seen in queued callback implementations, or at least the ones that aren't using the trigger application step, because the original triggering contact and associated session cannot be maintained end-to-end.)
03-03-2021 11:53 PM
@Jonathan Schulenberg thank you for your reply.
Before i see your reply i was playing around and managed to get it working in test environment by using a set session info step on script 1 and mapping the voicemail variable in the context to that. on script 2 i used the get contact info and get session info after that map the same variable once again.
Is this a different way of doing it? or would that setup have side effects with multiple concurrent calls in production?
screenshot of the scripts below. thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide