Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer Service forum

HTML Web resource with XRM functions

(0) ShareShare
ReportReport
Posted on by 125

Hi,

I have prepared Power BI Report from Power BI Report Server which is placed as HTML Web Resource in Account Form. I would like to dynamically filter this report depends on which account, user is. To achieve this, I have to get account name from form and I can retrieve it by  Xrm.Page.getAttribute("name").getValue();. Unfortunately HTML web resource can't use global objects like Xrm.Page or Xrm.Utitlity.

Do you have any idea, how can I achieve account name in HTML web resource?

Greetings,

Dominik Kornat

Categories:
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: HTML Web resource with XRM functions

    Hi,

    For HTML Web resources, you need to use global context. Check this- docs.microsoft.com/.../getglobalcontext-clientglobalcontext.js.aspx

    Hope this helps.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: HTML Web resource with XRM functions

    Hello,

    Have you used "ClientGlobalContext.js.aspx" as a reference in your HTML.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Featured topics

Product updates

Dynamics 365 release plans