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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Xrm.Page.data return null

(0) ShareShare
ReportReport
Posted on by 395

Hi,

In crm online 2015 I open a webResource:
Xrm.Utility.openWebResource("new_addGoalsObjectivesMeasures",null,1500,1200);
new_addGoalsObjectivesMeasures is html webResource.
I want to get the guide of the record which I came from.
I write: Xrm.Page.data.entity.getId();
But Xrm.Page.data returns null.
Also when I write: parent.Xrm.Page.data.entity.getId(); it is null.
What do I am doing wrong?
Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Xrm.Page.data return null

    Using such references you would not be able to access opener record details. To access it you should pass id through webresource url and parse it inside webresource code. Here are articles that can be helpful for you:

    msdn.microsoft.com/.../jj602956.aspx

    msdn.microsoft.com/.../gg327945.aspx

  • NAOMI314 Profile Picture
    395 on at
    RE: Xrm.Page.data return null

    Andrii Butenko thanks!

    You helped me so match!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans