Service Studio 6.0 Help
Execute an Entity Action
To manage the entities (Represents a piece of information that you want to keep, in a persistent way. Correspond to tables in OutSystems database. The information is stored in attributes.) created in your eSpace, a set of Entity Actions is provided with an Entity and they can be executed in any action flow.
The picture below presents an example of Entity Actions for the Contact entity:
How to Execute an Entity Action:
An entity action can have:
Input parameters: Instantiated when the action is executed, through the Arguments property of the Execute Action element. How?
Output parameters: You can access the output parameters in one of the following ways:
Type directly <name of action>.<name of parameter>.
Example: when invoking a Create<Entity> entity action you can access the identifier of the record that was created by typing CreateEmployee.Id
In the Locals folder that is available in some editors.
Example: the Locals folder is available in the Scope Tree of the Expression Editor.
If the parameter is composite, you can browse its definition to reach the attribute you want; the possible composite types are Record and Record List.
Example: when invoking a GetEmployee entity action you can browse through the record to get the employee Name with GetEmployee.Record.Employee.Name
About Entities | Entity Actions | Execute Action