Hello: I have the following code to the field value from a partylist field and set that to the value of a lookup field. It is not setting the value, so I would like someone to look at the code to see if there are any errors or suggestions, thanks!
Hello: I have the following code to the field value from a partylist field and set that to the value of a lookup field. It is not setting the value, so I would like someone to look at the code to see if there are any errors or suggestions, thanks!
Hello,
Your code looks almost ok. Here is updated version you should check:
OrganizerOnChange: function () { var fieldValue = Xrm.Page.data.entity.attributes.get("organizer").getValue(); if (fieldValue && fieldValue.length > 0) { var lookupValue = [fieldValue[0]]; Xrm.Page.getAttribute("sla_requestorid").setValue(lookupValue); } },
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,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156