MS CRM Portal – Get user id and user name using liquid code and assign these to the javascript variable.

{% if user %}

{% assign userId =  user.id %}

{% assign userName =  user.fullname %}

var loggedinUserId = “{{userId}}”;        

var loggedinUserName=”{{userName}}”;        

{% endif %}

Leave a comment