Hi,
I am using following code to get "created by" field value, but its throwing error.
Is it possible to get "created by" using JavaScript?
var createdby = Xrm.Page.getAttribute("createdby").getValue();
Thanks
*This post is locked for comments
I used the below code it worked. Thanks for your time.
var createdby=Xrm.Page.data.entity.attributes.get("createdby").getValue()[0].id;
Yes, it is in the form and changes are published.
Is the Created By field definitely on the form and the form changes published?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156