Activity Type Descriptor Locator API
You can use the Activity Type Descriptor Locator API (Descriptor Locator API) to retrieve descriptors by ID or by classification. Use Sitecore’s service locator to get an instance of the Descriptor Locator API:
The Activity Type Descriptor Locators API is separate from the Marketing Operations API. Activity type descriptors represent a registration of an implemented type and are created by developers. Definitions managed by the Marketing Operations API are created by marketers.
Get activity type descriptor by ID
Use the .GetDescriptor() method to get a descriptor by ID. The ID corresponds to the ID of the descriptor item in Sitecore.
Get all activity type descriptors
Use the .GetAllDescriptors() method to get all activity types. The results can be paginated.
Get activity type descriptor by classification
Use the .GetDescriptorsByClassification() method to get all activity type descriptors with a particular taxonomy value assigned.
For performance reasons, you must supply the root taxonomy Guid as well as the value Guid.