web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Assigning a Record to the "Created By" using javascript

(0) ShareShare
ReportReport
Posted on by

Hello,

The requirement I have is to assign a record to the person whom created the record using Javascript. is it possible to do so?

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Drew Poggemann Profile Picture
    4 on at

    Hi Fitsum,

    So when you create the record the person who created would be assigned the owner.  I assume you are trying to do this outside of creation?

    I know this is not JavaScript, but what about a workflow on demand that you could execute that sets owner to the person who created the record?

    Hope this helps even though it is not JavaScript...

    Thanks,

  • Verified answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     Since you are on dynamics 365, you should be able to do it like this:

     Xrm.Page.getAttribute("ownerid").setValue(Xrm.Page.getAttribute("createdby").getValue( ));

     Then save..

     Assign request(which you would have to use in the earlier versions) has been deprecated..

  • Fitsum Profile Picture
    on at

    Thanks Alex. It worked.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans