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 :
Customer experience | Sales, Customer Insights,...
Unanswered

Display Dynamics 365 data in HTML webpage

(0) ShareShare
ReportReport
Posted on by 7

So I have an account that contains a bunch of location addresses. I want to display all the addresses of a specific account in my html webpage form, and they get to choose the addresses based on the dropdown menu of it.  If they choose that specific address it populates my html field with the chosen address.

Im not sure where to start though

pastedimage1669664948008v1.png

So I have a list of locations in this account and in the html webform, I want it to give a dropdown of all available locations of that specific account. Im trying to find the column name for locations in the customizations but i cant find it.

I have the same question (0)
  • Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Display Dynamics 365 data in HTML webpage

    Hi TheDynamicsMan,

    Here are some helpful links:

    1. HTML Web Resources in Dynamics 365 | HCLTech
    2. Web Resources (model-driven apps) - Power Apps | Microsoft Learn
    3. Webpage (HTML) Web Resources (model-driven apps) - Power Apps | Microsoft Learn
    4. (+) How to add custom HTML web resource on a form and use DataTable plug-in to display a grid? - Microsoft Dynamics 365 Community

    To query data in HML web resource. Usee below method:

    function Retrieve(webAPIVersion, entitysPluralName, fetchXmlQuery) {
    //GET[Organization URI]/api/data / v9.0/ EntityDefinitions(LogicalName = 'account') ? $select = DisplayName,IsKnowledgeManagementEnabled, EntitySetName HTTP/ 1.1
    //Accept: application / json
    //OData - MaxVersion: 4.0
    //OData - Version: 4.0
    var req = new XMLHttpRequest();
    req.open(
    "GET",
    Xrm.Page.context.getClientUrl() +
    "/api/data/" + webAPIVersion + "/" + entitysPluralName + "?fetchXml=" +
    encodeURIComponent(fetchXmlQuery),
    false
    );//Sync
    req.setRequestHeader("Prefer", 'odata.include-annotations="*"');
    req.onreadystatechange = function () {
    if (this.readyState === 4) {
    req.onreadystatechange = null;
    if (this.status === 200) {
    var results = JSON.parse(this.response);
    globalVariables.Results = results.value;
    } else {
    alert(this.statusText);
    }
    }
    };
    req.send();
    }

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 182

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 125 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans