cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ancy
Kudo Kingpin
Kudo Kingpin

Want to access CDS form fields from HTML web resource

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
OliverRodrigues
Super User II
Super User II

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.




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.

Power Apps Portals Super User


Oliver Rodrigues


 

View solution in original post

2 REPLIES 2
OliverRodrigues
Super User II
Super User II

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.




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.

Power Apps Portals Super User


Oliver Rodrigues


 

View solution in original post

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

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,456)