The ClientContextService exposes the ability to get the current user ID. Calling it in JavaScript is done like so:
var ccSvc = Sage.Services.getService(‘ClientContextService’);
var userID = ccSvc.getValue(‘userID’);
The ClientContextService exposes the ability to get the current user ID. Calling it in JavaScript is done like so:
var ccSvc = Sage.Services.getService(‘ClientContextService’);
var userID = ccSvc.getValue(‘userID’);