How to get global variables through flow

I set up several global variables but when I want access it from flow script, it failed. Then I found there is only one variables which not my expected one, how to get my variables? For example, the path is: global_custom.Telenav.ACCESS_TOKEN, but when I use “var_get()[“global_custom.Telenav.ACCESS_TOKEN”];” it got undefined.

let varsall = var_get();
log.info("All vars: " + JSON.stringify(varsall));

[INFO] All vars: {“flow_http_call_block_list”:“/v1/callback/zoomphone/incomingCall,/v1/livechat/incoming;/v1/sms/incoming,/v1/live-video/incoming,/v1/livechat/customer/incoming”}

HI @Alexander.LWZ the format should be like below:

let tempValue = var_get()["global_custom.Telenav.ACCESS_TOKEN"];

Note that the global_custom.Telenav.ACCESS_TOKEN is case sensitive, so please double check the case on how this variable was configured on your admin portal.

please see some examples here: Unirse a una reunión de Zoom

1 Like