Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

how to select multiple records through ribbon button

Posted on by 2,397

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,198 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

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