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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
MVP-Daniyal Khaleel 125
Tom_Gioielli 101 Super User 2025 Season 2
Erin Lubben 57