Namespace: CONFIG

CONFIG

Methods

staticZOHO.CRM.CONFIG.getCurrentUser(){Promise}

get Current User info
Returns:
Type Description
Promise Resolved with User info
Example
ZOHO.CRM.CONFIG.getCurrentUser().then(function(data){
	console.log(data);
});

//prints 
{
  "confirm": true,
  "full_name": "asd devvv",
  "role": {
    "name": "CEO",
    "id": "1000000028936"
  },
  "profile": {
    "name": "Administrator",
    "id": "1000000028942"
  },
  "last_name": "asd devvv",
  "alias": null,
  "id": "1000000030132",
  "first_name": null,
  "email": "naresh.babu+dev1@zylker.com",
  "zuid": "4253443",
  "status": "active"
}

staticZOHO.CRM.CONFIG.getOrgInfo(){Promise}

get plugins configuration data
Returns:
Type Description
Promise Resolved with Plugin Configuration
Example
ZOHO.CRM.CONFIG.getOrgInfo().then(function(data){
	console.log(data);
});

//prints 
{
 "Success": {
  "Content": "12345"
 }
}