Documentation

crm.enum.ownertype

Description and example

crm.enum.ownertype()

Method returns identifiers for types of CRM entities and SPAs.

Parameters

No parameters.

Example

	BX24.callMethod(
		"crm.enum.ownertype", 
		{}, 
		function(result) 
		{
			if(result.error())
				console.error(result.error());
			else
				console.dir(result.data());
		}
	);	

Possible values

{
 "result": [
    {
     "ID": 1,
     "NAME": "Lead",
     "SYMBOL_CODE": "LEAD",
     "SYMBOL_CODE_SHORT": "L"
   },
   {
     "ID": 2,
     "NAME": "Deal",
     "SYMBOL_CODE": "DEAL",
     "SYMBOL_CODE_SHORT": "D"
   },
   {
     "ID": 3,
     "NAME": "Contact",
     "SYMBOL_CODE": "CONTACT",
     "SYMBOL_CODE_SHORT": "C"
   },
   {
     "ID": 4,
     "NAME": "Company",
     "SYMBOL_CODE": "COMPANY",
     "SYMBOL_CODE_SHORT": "CO"
   },
   {
     "ID": 5,
     "NAME": "Invoice (legacy version)",
     "SYMBOL_CODE": "INVOICE",
     "SYMBOL_CODE_SHORT": "I"
   },
   {
     "ID": 31,
     "NAME": "Invoice",
     "SYMBOL_CODE": "SMART_INVOICE",
     "SYMBOL_CODE_SHORT": "SI"
   },
   {
     "ID": 7,
     "NAME": "Estimate",
     "SYMBOL_CODE": "ESTIMATE",
     "SYMBOL_CODE_SHORT": "E"
   },
   {
     "ID": 8,
     "NAME": "Requisites",
     "SYMBOL_CODE": "REQUISITE",
     "SYMBOL_CODE_SHORT": "RQ"
   },
   {
     "ID": 130,
     "NAME": "All included",
     "SYMBOL_CODE": "DYNAMIC_130",
     "SYMBOL_CODE_SHORT": "T82"
   }
 ],
 "time": {
   "start": 1652769631.135543,
   "finish": 1652769631.151046,
   "duration": 0.0155029296875,
   "processing": 0.0014200210571289062,
   "date_start": "2022-05-17T09:40:31+03:00",
   "date_finish": "2022-05-17T09:40:31+03:00",
   "operating": 0
 }
}


© «Bitrix24», 2001-2024