Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

javascript in dynamics 365 (2016)

Posted on by 60

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
    Black_Vash 60 on at
    RE: javascript in dynamics 365 (2016)

    Thanks its so usefull

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

    Thank you very much its so usefull !!!!

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 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
    Royal King 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans