Hi, I'm trying to use these custom actions to be called by Architect by means of a Call Data Action every time a given incoming email interaction hits a given IVR profile/flow.
I was able to make a couple of actions, the first one for retrieving a PureCloud access token (client credentials auth) and the second one to add a contact to a Dialer contact list. They work well separately, however for the second action I'm hard-coding the access token in the action configuration.
So I'm wondering if there's a way from Architect to store the access token retrieved with the first action in a "global variable" and keep on using that token for the second action until its expiration, once the token expires I invoke the first action to retrieve a new token again. I'm asking because I'd think it's not good to get a new token every time this whole process is triggered in Architect by an incoming interaction or maybe this is not the best approach for what I'm trying to do.
Thanks,
Henry