Quantcast
Channel: The Crm World » CRM 2011
Viewing all articles
Browse latest Browse all 7

Helpful CRM 2011 JavaScript Code snippets

$
0
0

How to get the logical name of the entity for the current record in CRM 2011 using Javascript

Code Snippet:  var entityName = Xrm.Page.data.entity.getEntityName();

For instance , if the current record is contact the above code will return a string “contact”

If you want to get current user id in crm 2011 form you can use Xrm.Page.context, you have to use

getUserId() method for this you can use it like below

Xrm.Page.context.getUserId()



Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images