Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Show Fields and Blocks of Selected Record From Entity Grid

Posted on by 932

I want to display the particular fields and blocks in a html webpage of selected Account recor.

I have a preview button on Accounnt Home, when i am clicked on that button after select the record then it will display the particular fields and blocks in the html page of that selected record.

6840.Acc.png

1) Select a record

2) Click on Preview button

3) 

 5852.Acc2.png

*This post is locked for comments

  • Suggested answer
    crm development Profile Picture
    crm development 870 on at
    RE: Show Fields and Blocks of Selected Record From Entity Grid

    You can call below JavaScript on Button click. There you can use the WebApi to fetch your data. Render all required fetched parameters to your html page.

    function callHTMLWebResource(){

    var AccountId = Xrm.Page.data.entity.getId();

    Xrm.Utility.openWebResource("new_htmlPage", AccountId);

    // Write WebAPI Code to fetch data

    }

    Hope this helps.

    Thanks,

    Anand

  • RE: Show Fields and Blocks of Selected Record From Entity Grid

    Thanks Anand for help but as mentioned in my question, I have to make a html web resource in which implement the necessary fields to show on that html page.

    And using ribbon workbench, implement that web resource on a custom button on home page of Account.

    When i select a account record and hit that button then fetch the information of that account and display them into that html page.

  • Suggested answer
    crm development Profile Picture
    crm development 870 on at
    RE: Show Fields and Blocks of Selected Record From Entity Grid

    Hi, refer below links.

    Open Account record on click of preview button:   community.dynamics.com/.../201425

    Make webpage readonly:   community.dynamics.com/.../174722

    Thanks,

    Anand

  • RE: Show Fields and Blocks of Selected Record From Entity Grid

    And the webpage should be read only.

  • RE: Show Fields and Blocks of Selected Record From Entity Grid

    Can you please elaborate this.

  • RE: Show Fields and Blocks of Selected Record From Entity Grid

    Yes, but i dont know that how could do this?

  • Flydancer Profile Picture
    Flydancer 1,332 on at
    RE: Show Fields and Blocks of Selected Record From Entity Grid

    And what is your question?

    Bind a javascript function on that button that opens a new window and renders all content you need.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans