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 : 5QFMG+I7DCVgr0yjDqvB1F
Power Pages - Power Apps Portals
Answered

Want to access CDS form fields from HTML web resource

Like (0) ShareShare
ReportReport
Posted on 22 Apr 2020 09:48:46 by 95

Hi,

As per my understanding for the PowerApp portal we can design CDS entity form same as we do in D365 sales (aka MS CRM). I've developed the entity form and setup HTML web resource on that.

I would like to access the value of the CDS form field inside this HTML web resource. As per my knowledge, this should be achieved by window.parent.XRM.Page.getAttribute(). But, when I try to do so I'm not able to get the XRM object.

Am I missing something? Please advise. Any help would be much appreciated.

 

I have the same question (0)
  • a-ovbord Profile Picture
    on 04 May 2020 at 11:46:47
    Re: Are Power Portals working in the same way like Model Driven Apps?

    Hi @Ancy,

     

    If you found the info sent so far useful and you managed to solve your request, please update here and press on Accept as solution.

    This will help future customers in finding the solution to the same issue.

     

    Thank you,

    Ovidiu Bordea

  • Verified answer
    oliver.rodrigues Profile Picture
    9,347 Most Valuable Professional on 22 Apr 2020 at 10:03:19
    Re: Are Power Portals working in the same way like Model Driven Apps?

    well no, the portals is not running like a modern driven app and does not have access to the XRM object

    if you are in a page/entity form you can easily access your objects via normal JS/jQuery like $("field").val(); 

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Pages

#1
Jon Unzueta Profile Picture

Jon Unzueta 107 Super User 2025 Season 2

#2
KevinGador Profile Picture

KevinGador 34 Super User 2025 Season 2

#3
SwatiSTW Profile Picture

SwatiSTW 24 Super User 2025 Season 2

Last 30 days Overall leaderboard