Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

GUID of account field

Posted on by 12,070 Super User 2024 Season 1

Hi all 

I need GUID of account field 12787.Untitled.png on account form.

How can I get it.

Thank you

*This post is locked for comments

  • Suggested answer
    Vavrinec Profile Picture
    Vavrinec 20 on at
    RE: GUID of account field

    At cloud CRM you can create custom text field and automatic cloud flow - get account id and save to custom field. Text field save as read only. Does exist better solution?

  • jdalske Profile Picture
    jdalske 536 on at
    RE: GUID of account field

    I was able to do this...I have to take a quick look and see what I did.  Will post below.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: GUID of account field

    Hi

    Since this is something we use very often, you can create a bookmark, the following example is for chrome

    ScreenClip-_5B00_477_5D00_.png

    URL : javascript:if (window.prompt("CRM Record GUID is :", $("iframe").filter(function () { return ($(this).css('visibility') == 'visible') })[0].contentWindow.Xrm.Page.data.entity.getId().slice(1, -1))) { }

    ScreenClip-_5B00_477_5D00_.png

    When you click on the bookmark CRM Record GUID, you will get

    ScreenClip-_5B00_476_5D00_.png

    You can copy and paste anywhere you want

    Hope this helps

  • jdalske Profile Picture
    jdalske 536 on at
    RE: GUID of account field

    I need this also for the account form.  Any luck?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GUID of account field

    Doesn't work. I get error "...TypeError: Cannot read property 'set Value' of null at "

  • Verified answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: GUID of account field

    Thank you all

    I get it through this code "var currentleadId = Xrm.Page.data.entity.getId();;"

  • Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: GUID of account field

    Hi all

    I want this Account field GUID value like here  <condition attribute="accountid" operator="eq" uiname="Warind Traders" uitype="account" value="{8F3E4A08-1263-E611-80C0-308D99276D29}" for every account name on account form. Is there any thing that will give me that?

     

  • Abed Haniyah Profile Picture
    Abed Haniyah 4,285 on at
    RE: GUID of account field

    OOB you cannot show GUID field for any record on the forms

  • Suggested answer
    Neil Parkhurst Profile Picture
    Neil Parkhurst 10,725 User Group Leader on at
    RE: GUID of account field

    I don't think you can directly add the GUID to the account to the form. (If that is what you want!)

    You could try creating a text field and then set that to the accounts GUID.

    Maybe in JavaScript using something like (possibly in your onload event) ....

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

    Xrm.Page.getAttribute("new_YOURFIELD").setValue(accountGUID);

    Alternatively if you just need to find the GUID then looking in the url or using email link would do the trick.

  • Suggested answer
    TheMarkChristie Profile Picture
    TheMarkChristie 10,328 on at
    RE: GUID of account field

    Hi Adbul,

    It depends what you need it for, But when you open up a record and look at the URL it has the record GUID in the address bar or if you select email link it has the guid in there

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans