Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

how to select multiple records through ribbon button

(0) ShareShare
ReportReport
Posted on by 2,403

Hi, is it able to select multiple records from the associated view and pass their recordid by clicking the custom button through javascript ? how should I do that through ribbon button ?

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: how to select multiple records through ribbon button

    Hi sdnd2000,

    Yes, we are able to do it, please check steps below:

    1. Create a solution which contains entity and its view that you want to add custom ribbon button.

    In my test, I only added "My Order" view of Order entity to solution, but it seems that the button will still appear in "Order Associated View" automatically.

    2. Download the latest Ribbon Workbench solution, because from my using experience, I think it is running faster and smoother than older release version.

    Difference between old and latest release:

    older version name is RibbonWorkbench2016_3_1_177_1_managed.zip, the newer or latest is RibbonWorkbench_latest_beta.zip.

    the header bar color is updated to purple compared with navy blue in the previous.

    3. I append custom button after "delete" button, and associated it with a command and an enable rule.

    2047.JPG

    4. Create an enable rule to the button:

    Display button only when 1 to 3 records are selected.

    08021.JPG

    5. Pass "SelectedControlSelectedItemIds" parameters(Crm Parameter) to our function. 

    As per my understanding, it is similar to when we pass executionContext to our function.

    Then we should apply the enable rule to our command.

    7282.JPG

    6. Result Test

    As we can in screenshot, in Order Associated View, if I select two records,

    then their id will be saved in an array, and the array is the passing parameter.

    5710.JPG

    Regards,

    Clofly

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,287 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans