Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Get Home Grid and Advanced find Selected record Guids while delete in plugin

(0) ShareShare
ReportReport
Posted on by 1,000

Hi Team,

I need to get selected Guids from home grid and advance find result view in plugin while trying to delete the record using ribbon delete button.

I registered the plugin in Delete message but I can get one record's Guid.which means  If I select 5 records and delete, I need to get all 5 guids (custom entity) in plugin.

So how can I accomplish this scenario? I tried "BulkDelete" message but I can't register the plugin. Is it possible to get the result using bulkdelete message?

TIA.

  • vijay12872 Profile Picture
    vijay12872 1,000 on at
    RE: Get Home Grid and Advanced find Selected record Guids and while delete in plugin

    Thanks for your reply Saud Ali . We can get the Ids by using mentioned above suggestion in client side. But I need the ids in Plugin.

  • Saud Ali Profile Picture
    Saud Ali 65 on at
    RE: Get Home Grid and Advanced find Selected record Guids and while delete in plugin

    Hi vijay12872 ,

    If you have to pass selected Guids from CRM grid view to a plugin you can use plugin Input Parameters in plugin. To get selected rows from a grid you can use this code.

    let allSelectedRows = gridContext.getGrid().getSelectedRows();
    
    

    For more controls and details, you can go through this link: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/grids/grid/getselectedrows

    Thanks

    Please mark as verified if the answer is helpful.

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans