Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Not able to pass data from UI page to workspace client script.

gurdesi2
Tera Contributor

While working on UI page, I want to pass data from UI page client script to my actual Interaction record client script where I'm using g_modal.showframe and a callback function to retrieve values.

 

Tried using iframeMSGHelper and Window.parent.postMessage but both are not working. Help with a solution please.

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@gurdesi2 

see this

Solved: How to pass data from client script to workspace U... - ServiceNow Community

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur, 

 

Thanks for the reply, but seems like this solution may work on native but for Workspace its not working.