Create entity activity (how-to)

Create entity activity (how-to)

Functionality

This article describes how to use the create entity activity. The activity creates a new entity in the specified Entitytype. It works for both persisted entities and virtual entities.

Settings

 

Both the create entity activity and set values activity uses the same GUI for updating entity properties.

 

Learn more about the Devexpress Expressions, Constants, Operators and Functions

Name - Equals the display name of the property

Value - Here you can set values for your property.

Transformation - A list of different transformations

Parameters - Used to defined the transformation selected. See link to devexpress above for more information.

Parameters

Input-data

Property

Entity

Required

 

Property

Entity

Required

 

Inputs not possible

 

 

 

 

 

 

 

Output-data

Property

Entity

 

Property

Entity

 

No outputs possible

 

 

 

 

 

Example

We are going to show you how to create a Contact in the CRM app and then open the edit dialog for a customer.

  1. Go to the Flow tab and press create new workflow or go to search workflow and press create New Workflow then name it Contact: Add

  2. Drag-and-drop the create entity activity to your start activity.

     

  3. Double-click the create entity activity and select the entity named Contact and rename activity to create Contact. Press Ok.

     

     

  4. Add the run workflow activity to the create contact activity. Double click the Run workflow activity. Select the workflow Edit Contact and rename to edit contact.

     

  5. Double-click the branch leading into the run workflow activity and add bind value parameter that sends in the Created entity to the workflow.

     

  6. Add the activity Cancel workflow activity to the drop target Cancel

     

  7. Add the activity Commit context activity to the drop target OK.

     

     

  8. Press New command and change caption to Add

     

  9. Save or Ctrl-S