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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (65,037)