Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Passing ids of selected records to html page

(0) ShareShare
ReportReport
Posted on by 100

I want to update selected records based on user inputs on click of button on main page grid of entity. As we cannot do it with dialog so I created a Html page and added the required fields.

On click of button in the JavaScript I am able to get the Guids of the selected records and after that I am opening the Html page and based on inputs provided by user in the Html page i need to update the selected records.But how we can pass the guids to html page. please help me.

function Activate_OnClick(selectedItems) { -------------------------------------> here in the selectedItems I am able to get ids of the selected records


Xrm.Utility.openWebResource("Html/ReactivateRecord");
}

*This post is locked for comments

  • Verified answer
    Amarsen Profile Picture
    Amarsen 55 on at
    RE: Passing ids of selected records to html page

    Just pass the selected ids as query string param to your html page and use below to read the ids (encode and decode the data)

    build the url like so

    website.com/yourcustom.html

    then use below code to read the parameter in you html using jsavascript

    stackoverflow.com/.../getting-the-url-parameters-inside-the-html-page

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 Moderator on at
    RE: Passing ids of selected records to html page

    You can pass parameters to a web resource using the data parameter. Take a look at the following msdn articles:

    msdn.microsoft.com/.../jj602956.aspx

    msdn.microsoft.com/.../gg327945.aspx

    Hope this helps.

  • Verified answer
    RE: Passing ids of selected records to html page

    Hi Rajeev320,

    please refer to the following page:

    https://ribbonworkbench.uservoice.com/knowledgebase/articles/129783-pass-the-currently-selected-grid-row-s-to-a-custo 

    Ribbon workbench is needed.

    Please let me know if you solve.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans