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 ?
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 ?
If what you are actually trying to get the id of a lookup attribute then add .getValue()[0].id
Hello,
You can use something like
parent.window.Xrm.Page.data.entity.getId()
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Vahid Ghafarpour
78
Super User 2025 Season 1
Sahra
43