Sorry for the long delay in responding. We are working on an update with a timeframe of about a month. Will make a note to check back here and update again.
Original Message:
Sent: 04-07-2025 10:29
From: Reginald Sheraton
Subject: Dynamic Script variable
any update on this?
------------------------------
Reginald
Original Message:
Sent: 04-03-2025 14:03
From: Jacob NEWBY
Subject: Dynamic Script variable
Anton,
Thank you for your reply. I see that "getIndexValue" is an extension that we support. I have generated a ticket on our end to investigate this issue.
------------------------------
Jake NEWBY
Senior Software Engineer
Original Message:
Sent: 04-02-2025 17:55
From: Anton Vroon
Subject: Dynamic Script variable
@Jacob NEWBY His example of getIndexValue is from this page:
https://help.mypurecloud.com/articles/additional-functions-to-use-in-dynamic-variables/

If that is not valid, the page should be updated...
------------------------------
Anton Vroon
Original Message:
Sent: 04-02-2025 16:43
From: Jacob NEWBY
Subject: Dynamic Script variable
Reginald,
Thanks for taking time to ask a question. The script builder uses Math.js for its evaluation of dynamic variables. I'm not sure where you found "getIndexValue" as a valid function to use in this context. Using your example, try using bracket syntax for accessing arrays instead.
["a","b","c"][1]
Here are some helpful links to learn more about Math.js and its use in scripter.
https://help.mypurecloud.com/articles/dynamic-script-variables/#:~:text=Dynamic%20variables%20compute%20their%20own,True%2FFalse%20(Boolean).
https://mathjs.org/docs/reference/functions.html
------------------------------
Jacob NEWBY
Senior Software Engineer
Original Message:
Sent: 04-02-2025 12:49
From: Reginald Sheraton
Subject: Dynamic Script variable
Hi there, need some assistance/guidance with dynamic script variable in a script.
i have created a dynamic variable in a script and add getIndexValue(["a","b","c"], 1) just to test.
when i preview the script, the variable returns blank instead of b.
any suggestion/ solutions?
#Unsure/Other
------------------------------
Reginald
------------------------------