Hi all
I need GUID of account field on account form.
How can I get it.
Thank you
*This post is locked for comments
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?
I was able to do this...I have to take a quick look and see what I did. Will post below.
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 need this also for the account form. Any luck?
Doesn't work. I get error "...TypeError: Cannot read property 'set Value' of null at "
Thank you all
I get it through this code "var currentleadId = Xrm.Page.data.entity.getId();;"
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?
OOB you cannot show GUID field for any record on the forms
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156