PHP, SugarCRM, Javascript, Cool Web Apps Developer

Blog

Fetch Current User Id - Sugar 7

Posted by swapnil shinde on October 5, 2014 at 10:30 AM Comments comments (0)

From any of the javascript you have included in sugar crm's view hit following code response will give you the info you need.

App.api.call(

    'read',

    App.api.buildURL( 'me' ),

    null,{

    success: _.bind( function( objCurrentUser ) {

        custom_user_id: objCurrentUser.current_user.id,

    }, this )

 });