SBX - Search With Button

SBX - Forum Post Title

javascript in dynamics 365 (2016)

Microsoft Dynamics CRM Forum

Winston Red asked a question on 28 Apr 2019 3:32 AM

Question Status

Verified
Chitrarasan Duraisamy responded on 28 Apr 2019 5:27 AM
My Badges
Verified Answer

use below code to assign record to new owner, replace newuserid  and new user name to actual id and name of the new user.

Xrm.Page.getAttribute("ownerid").setValue([{id:"newuserid",name:"newusername",entitytype:"systemuser"}]);

Reply
Verified Answer

Hi Winston Red,

This forum thread explains how to assign a record to a user or team with JavaScript.

Reply
Winston Red responded on 29 Apr 2019 4:14 AM

Thank you very much its so usefull !!!!

Reply
Winston Red responded on 29 Apr 2019 4:15 AM

Thanks its so usefull

Reply
Chitrarasan Duraisamy responded on 28 Apr 2019 5:27 AM
My Badges
Verified Answer

use below code to assign record to new owner, replace newuserid  and new user name to actual id and name of the new user.

Xrm.Page.getAttribute("ownerid").setValue([{id:"newuserid",name:"newusername",entitytype:"systemuser"}]);

Reply
Verified Answer

Hi Winston Red,

This forum thread explains how to assign a record to a user or team with JavaScript.

Reply

SBX - Two Col Forum

SBX - Migrated JS