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 :
Microsoft Dynamics CRM (Archived)

Add custom button to rows of entity list.

(0) ShareShare
ReportReport
Posted on by 42

We working on customer portal and using Entity List.

Is there a way to add custom button to each row of the entity list like Item Action in grid configuration.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Add custom button to rows of entity list.

    I had used this code to add custom button and it worked for me, you can make required changes as you need

    $(document).ready(function () {

      $(".entitylist.entity-grid").on("loaded", function () {

         $(this).children(".view-grid").find("tr[data-id]").each(function (i, e){

            var id = $(this).attr("data-id");

    console.log(id);

            $(this).append("<td><a href='/download-transaction-receipt?id=" + id + "'>Download</a></td>");

         });

      });

    });

    pastedimage1596605550060v2.png

  • Rahul Jangda Profile Picture
    42 on at
    RE: Add custom button to rows of entity list.

    Thanks for the suggestion.

  • Verified answer
    oliver.rodrigues Profile Picture
    4,052 on at
    RE: Add custom button to rows of entity list.

    you will need to create 2 Entity Forms for this

    - 1 read-only for viewing the details

    - 1 edit (I would suggest leaving just an ID/Name or something and the Comment box)

    add the entity forms into the entity list configuration.. the same link that I sent in the previous answer

  • Rahul Jangda Profile Picture
    42 on at
    RE: Add custom button to rows of entity list.

    we want button to add comments to that entity and another button to show details of that paticular entity.

  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at
    RE: Add custom button to rows of entity list.

    what is the button supposed to do? you can easily setup it to trigger a Workflow in CRM

    please refer to Entity List Configuration topic:

    docs.microsoft.com/.../add-webpage-render-list-records

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans