Access a interaction ID or something relevant from within the IFrame script

pavankoppolu
Tera Contributor

I want to access a interaction ID or something relevant which is unique to the interaction from within the IFrame script (ideally within api.state) while it is embedded in CSM Configurable Workspace.

 

I guess the data is already accessible within api.state but i am just not able to see it at runtime since i have tried console.log, window.alert and window.localStorage so i could see the data contained at runtime, but none.

 

The simplest way forward seems to be to to parse the window URL and extract the interaction ID from within. e.g, https://dev123456.service-now.com/now/cwf/agent/record/interaction/<INTERACTION-ID>.

 

But it seems to not be scalable, since the client URL structure could change at any moment and they could even use a different workspace to do this.

0 REPLIES 0