Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to get and view GUID in CRM Dynamics forms and view

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

How to view account entity guid in forms and column views.

I tried this link but didn't work for me

www.powerobjects.com/.../how-to-derive-and-expose-a-record-guid-on-your-forms-using-oob-functionality

Please suggest me

Thanks in advance

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to get and view GUID in CRM Dynamics forms and view

    Thanks Shahbaaz

    It's Work for me

  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: How to get and view GUID in CRM Dynamics forms and view

    You can used advance find. Construct the column you need, and then export it to excel to get the data.

  • Verified answer
    Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,203 on at
    RE: How to get and view GUID in CRM Dynamics forms and view

    Hi Alriyan,

    You can go to any view lets say Account, there will be option of download in excel, Download that file---open it and unhide first 3 field in that. 1st field will be the guid of the record.

    Hope this helps,

    Best Regards,

    Shahbaaz

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to get and view GUID in CRM Dynamics forms and view

    Thank you

    But my requirement is Export to excel with GUID for all records in account entity, its possible..?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to get and view GUID in CRM Dynamics forms and view

    function GetGuid(fieldName) {

       var guid= Xrm.Page.data.entity.getId();

       Xrm.Page.getAttribute("CUSTOMFIELDNAME").setValue(guid);

    }

    call this method on "Onload" of your form

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to get and view GUID in CRM Dynamics forms and view

    How to set onload function in custom created text box field

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to get and view GUID in CRM Dynamics forms and view

    Hello

    try this

    Xrm.Page.data.entity.getId() in javascript code. and create a custom single line text box field.

    "onload" of your form get Guid with this code and set in created field

    Hope you can understand what I mean!

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…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans