Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

javascript in dynamics 365 (2016)

(0) ShareShare
ReportReport
Posted on by 62

Hi everybody.I need your helps!!!!!

I need a javascript code to assign a record to other user (with ID or username)

Please help me!!!!!!!

*This post is locked for comments

  • Black_Vash Profile Picture
    62 on at
    RE: javascript in dynamics 365 (2016)

    Thanks its so usefull

  • Black_Vash Profile Picture
    62 on at
    RE: javascript in dynamics 365 (2016)

    Thank you very much its so usefull !!!!

  • Suggested answer
    Adrian Begovich Profile Picture
    1,025 Super User 2025 Season 1 on at
    RE: javascript in dynamics 365 (2016)

    Hi Winston Red,

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

  • Verified answer
    Royal King Profile Picture
    27,686 on at
    RE: javascript in dynamics 365 (2016)

    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"}]);

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.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans