Sunday, 16 December 2018

How to get logged-in user Id and name in Dynamic CRM using JavaScript.

get current user of dynamics crm using javascript

Description:

In this example, we explain that how to get users name of logged in user role in Dynamic 365 CRM using JavaScript. Alternatively, how to get current logged in user name using JavaScript in Dynamic CRM.or how to get the Logged in user id from JavaScript in dynamic CRM.

So here in this example we explain that how to get current user ID and Name in Dynamic CRM using JavaScript. Alternatively, how to retrieve current user info using JavaScript in Dynamic 365 CRM.below is the JavaScript code that will helpful you to get user name and id of the current logged in user in Dynamic CRM.
Code:

Xrm.Page.context.getUserId();
Xrm.Page.context.getUserName();

0 comments:

Post a Comment