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

Notifications

Announcements

No record found.

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

    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

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans