Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

retrieve GUID of record from grid

Posted on by 110

Hi

  I want to retrieve GUID of record selected from an editable subgrid using javascript.

*This post is locked for comments

  • Suggested answer
    Summer Garg Profile Picture
    Summer Garg 585 on at
    RE: retrieve GUID of record from grid

    Hi Sathish,

    Check this article, to get GUID of selected records :

    crmhub.blogspot.in/.../how-to-get-selected-records-guid-from-home-page-entity-view-using-Java-Script-MS-Dynamic-CRM.html

  • Suggested answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: retrieve GUID of record from grid

    Basically you have to bind a function to OnRecordSelect of your grid (it's available on the list of events when you go on the "Events" tab for your grid). This function can look like this:

    function OnRowSelected(e){
        var id = e.getFormContext().data.entity.getId()
        console.log(id);
    }
  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: retrieve GUID of record from grid

    Hi Sathish,

    You can refer the below MSDN article about all the supported JavaScript methods available. For your requirement, you may need getSelectedRows, getId but the article explains all the available methods.

    msdn.microsoft.com/.../mt788311.aspx

  • Suggested answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: retrieve GUID of record from grid

    Editable subgrid is very restrictive in nature - so you wont be able to run JS and get GUID etc.

    You need to rely on event like Update/create to populate some field and then work with that using JS.

    Can you please brief about what exact functionality are you trying to implemment?

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    Rajkumar Rajaraman 18,108 on at
    RE: retrieve GUID of record from grid

    Refer this. But this for CRM 2011 any way once look you have an idea:

    lakshmanindian.wordpress.com/.../update-selected-records-in-home-page-entity-grid-in-crm-2011

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans