Work with the Catalog Entity Views and Actions API
External systems can exchange catalog-related information using the Catalog Entity Views and Actions API.
The Views and Actions API is an authoring API designed to service a business user interface and is not optimized for integration scenario.
You should consider the following when using the Views and Actions API for your commerce integration:
-
The Views and Actions API can only process one Commerce entity at the time and does not support batch processing.
-
The Views and Actions API carries more overhead than the Commerce web service API. A call to the Views and Action API is typically a 3-step process that requires getting the action's view, modifying the view's properties with updated values, and then executing the action.
Get a catalog (C#)
Get a catalog (C#)
You can use the Entity Views and Actions API to retrieve a Commerce catalog using C#.
To retrieve a catalog:
Create a catalog (C#)
Create a catalog (C#)
You can use the Entity Views and Actions API to create a new catalog using C#.
To create a catalog:
-
Get the entity view:
-
Provide the name and the display name of the new catalog:
-
Execute the action:
Update the details of a catalog (C#)
Update the details of a catalog (C#)
You can use the Entity Views and Actions API to modify information details related to a catalog.
To modify a catalog details using C#:
-
Get the entity view for the catalog details:
-
Provide the new catalog details, for example the catalog name or display name:
-
Execute the action:
Delete a selected a catalog (C#)
Delete a selected a catalog (C#)
You can use the Entity Views and Actions API to delete a catalog using C#.
To delete a selected catalog:
-
Get the entity view for the catalog:
-
Execute the delete action:
Get a category (C#)
Get a category (C#)
You can use the Entity Views and Actions API to retrieve a catalog category using C#.
To get a category:
Create a category (C#)
Create a category (C#)
You can use the Entity Views and Actions API to create a catalog category using C#.
To create a catalog category:
-
Get the entity view:
-
Provide the new category details, including the name of the category, the display name, and a description, for example:
-
Execute the action:
Update a category (C#)
Update a category (C#)
You can use the Entity Views and Actions API to update the details of a category using C#.
To update the information details of a category:
-
Get the entity view:
-
Provide the new details for the category, for example the display name and the description:
-
Execute the action:
Delete a category (C#)
Delete a category (C#)
You can use the Entity Views and Actions API to delete a category from a catalog, using C#.
To delete a category from a catalog:
-
Get the entity view and delete the catalog:
-
Execute the action:
Disassociate a category (C#)
Disassociate a category (C#)
You can use the Entity Views and Actions API to remove the association that links a category and a sub-category, for example to remove the association without deleting the category, using C#.
To remove the association:
-
Get the entity view:
-
Disassociate the category:
-
Execute the action: