web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to use Xrm.Page.data in Xrm.Navigation.navigateTo?

(0) ShareShare
ReportReport
Posted on by 1,088

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

pastedimage1629259012586v1.png

to be able to acces form properties but that object is always NULL, Xrm has data though

pastedimage1629259083781v3.png

thanks

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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:

    Prepopulating Data in Form when opening form using Xrm.Navigation.navigateTo - Unified Interface Forum Community Forum (dynamics.com)

    navigateTo (Client API reference) in model-driven apps - Power Apps | Microsoft Docs

  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    Please try below highlighted options.

    pastedimage1630867208418v1.png

    Thanks,
    Pradeep.

    Please mark this as VERIFIED it it helps.

  • PabloCRP Profile Picture
    1,088 on at

    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 

    pastedimage1631138765562v1.png

  • Suggested answer
    PabloCRP Profile Picture
    1,088 on at

    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.

  • djc84@163.com Profile Picture
    on at

    please go to check window index.

    example:  parent[0].Xrm.Page.getAttribute;  parent[1].Xrm.Page.getAttribute;   parent[3].Xrm.Page.getAttribute  ....

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 182 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans