web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to get Contact form information using webresource HTML by clicking the button on ribbon

(0) ShareShare
ReportReport
Posted on by 20

How to get Contact form information using webresource HTML by clicking the button on ribbon 

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You can pass the id of the record through the URL and get the information using WebApi.

  • Charan Raju C R Profile Picture
    7 Moderator on at

    Hi Sunil,

    Your requirement is to fetch contact record details from HTML webresource which opens on button click on contact ribbon. Is that correct?

  • sunil kumar m Profile Picture
    20 on at

    Yes that was my question

  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at
    Hi Sunil,
    First you create a JavaScript webresource with a function (say, onButtonClick()) which will be called on button click action.

    Then download and import ribbon workbench solution to your development environment. This solution helps you to add ribbon button to entity ribbon, set related action and rules.

    Go through below links to understand how to add a button. Add action to this button to make a call to a function created above: onButtonClick().

    Create an HTML webresource which contains HTML content as per your need. Also add JavaScript reference to link to websource created in first step.

    Inside onButtonClick() JavaScript function, call built-in function to open HTML webresource. Refer below link.

    Read these articles to prepare your HTML webresource which fetches data from the form.

    Good luck!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 103 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 83

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans