*This post is locked for comments
*This post is locked for comments
because when you do a getValue of a lookup you get an object
if you need the Id, you need to access the Id property of the first element of the array
var accountRef = Xrm.Page.getAttribute("parentcustomerid").getValue(); if (accountRef != null) { var accountId = accountRef[0].id; // rest of your code }
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,409
Most Valuable Professional
nmaenpaa
101,156