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

Notifications

Announcements

No record found.

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
    oliver.rodrigues Profile Picture
    4,052 on at

    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

  • Rahul Jangda Profile Picture
    42 on at

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

  • Verified answer
    oliver.rodrigues Profile Picture
    4,052 on at

    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

    Thanks for the suggestion.

  • Suggested answer
    Community Member Profile Picture
    on at

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans