web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

GUID of account field

(0) ShareShare
ReportReport
Posted on by 12,119 Moderator

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

I have the same question (0)
  • Suggested answer
    TheMarkChristie Profile Picture
    10,328 Moderator on at

    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

  • Suggested answer
    Neil Parkhurst Profile Picture
    10,727 User Group Leader on at

    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.

  • Abed Haniyah Profile Picture
    4,287 on at

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

  • Abdul Wahab Profile Picture
    12,119 Moderator on at

    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?

     

  • Verified answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Thank you all

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

  • Community Member Profile Picture
    on at

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

  • jdalske Profile Picture
    547 on at

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

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    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
    547 on at

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

  • Suggested answer
    Vavrinec Profile Picture
    20 on at

    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?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans