Adding New Actions to PTC Domains
OData actions change the state of the entities and are called with a POST request. These are the basic differences between actions and functions.
In terms of definition, actions are similar to functions. However, there are some differences in definition between actions and functions:
Actions are defined in the actions property of imports and entity JSON files.
Actions are named with a prefix of action_.
All custom actions must return ActionResult in addition to the other objects that are being collected (returned) by the action.
¿Fue esto útil?