Enumerations: Overview of Methods
Enumeration methods return information about the values of types: address type, activity type, object type, and others.
Quick navigation: all methods
How to Work with Enumeration Methods
Determine what data you need and select the enumeration method. For example, if you need to retrieve all legal addresses of a contact:
-
use the method crm.enum.addresstype to find out the identifier for the legal address type
-
use the obtained identifier in the
TYPE_IDfilter parameter in the method crm.address.list
Relationship of Enumeration Methods with CRM Objects
CRM Object. The method crm.enum.ownertype returns identifiers for object types. Use the ID of the object type in the entityTypeId parameter value of the methods crm.item.*, crm.activity.*.
Typical use-cases and scenarios
Order. The method crm.enum.getorderownertypes returns object types to which an order can be linked. Use the id of the object type in the ownerTypeId parameter value of the methods crm.orderentity.*.
Description Type. The method crm.enum.contenttype returns types of descriptions. Use the ID of the description type in the DESCRIPTION_TYPE parameter value of the methods crm.activity.*.
Activity. The method crm.enum.activitytype returns types of activities. Use the ID of the activity type in the TYPE_ID parameter value of the methods crm.activity.*.
Status. The method crm.enum.activitystatus returns types of activity statuses. Use the ID of the activity status in the STATUS parameter value of the methods crm.activity.*.
Priority. The method crm.enum.activitypriority returns types of activity priorities. Use the ID of the priority in the PRIORITY parameter value of the methods crm.activity.*.
Direction. The method crm.enum.activitydirection returns types of activity directions. Use the ID of the direction in the DIRECTION parameter value of the methods crm.activity.*.
Typical use-cases and scenarios
Notification. The method crm.enum.activitynotifytype returns types of notifications for activities. Use the ID of the notification type in the NOTIFY_TYPE parameter value of the methods crm.activity.*.
Address. The method crm.enum.addresstype returns types of addresses. Use the ID of the address type in the TYPE_ID parameter value of the methods crm.address.*.
Typical use-cases and scenarios
CRM Operating Mode. The method crm.enum.settings.mode returns the type of CRM. Use this method to decode the ID type value returned by the method crm.settings.mode.get.
Overview of Methods
Scope:
crmWho can perform methods: depending on the method
|
Method |
Description |
|
Returns descriptions of enumeration fields |
|
|
Returns object types in CRM |
|
|
Returns identifiers of object types to which order binding is available |
|
|
Returns types of addresses |
|
|
Returns descriptions of CRM operating modes |
|
|
Returns enumeration items "Activity Types" |
|
|
Returns enumeration items "Activity Priorities" |
|
|
Returns enumeration items "Description Type" |
|
|
Returns enumeration items "Activity Direction" for emails and calls |
|
|
Returns enumeration items "Notification Type for Activity Start" for meetings and calls |
|
|
Returns enumeration items "Status" |