Announcements
Hi all
I need GUID of account field on account form.
How can I get it.
Thank you
*This post is locked for comments
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
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.
OOB you cannot show GUID field for any record on the forms
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?
Thank you all
I get it through this code "var currentleadId = Xrm.Page.data.entity.getId();;"
Doesn't work. I get error "...TypeError: Cannot read property 'set Value' of null at "
I need this also for the account form. Any luck?
Hi
Since this is something we use very often, you can create a bookmark, the following example is for chrome
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))) { }
When you click on the bookmark CRM Record GUID, you will get
You can copy and paste anywhere you want
Hope this helps
I was able to do this...I have to take a quick look and see what I did. Will post below.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.