Announcements
I'm using an external JS for a custom button on my form and when I want to get fields data I use this - parent.window.Xrm.Page.getAttribute() what can I use if I want to get the current record guid ?
Hello,
You can use something like
parent.window.Xrm.Page.data.entity.getId()
If what you are actually trying to get the id of a lookup attribute then add .getValue()[0].id
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.
Manoj - ManoVerse 77 Super User 2026 Season 1
11manish 43
Chris1968 20