Announcements
Hi, I use this method Xrm.Navigation.navigateTo() to open a webresource html and inside this resource I've tried to get the form context
like
parent.Xrm.Page.data
Xrm.Page.data
window.Xrm.Page.data
to be able to acces form properties but that object is always NULL, Xrm has data though
thanks
please go to check window index.
example: parent[0].Xrm.Page.getAttribute; parent[1].Xrm.Page.getAttribute; parent[3].Xrm.Page.getAttribute ....
I ended up doing like this blog Get formContext in navigateTo web resource basically saving the formContext in a custom global variable e.g.: window.parent.customVariable and calling it inside the web resource.
nothing seems to work I neet to get a form value and need to acces to the form controls but I can't, below what I've tried
Hi,
Please try below highlighted options.
Thanks,
Pradeep.
Please mark this as VERIFIED it it helps.
Hi,
I have tested it on my side, it seems that Xrm.page.data can't work in this situation.
You can try to add data parameter in the pageInput object to pass value.
Please refer to this:
navigateTo (Client API reference) in model-driven apps - Power Apps | Microsoft Docs
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156