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

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
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,
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..
Thanks Alex. It worked.