SaveTask (V2)

The SaveTask activity enables you to save a Task (INSERT mode) and display a validation message.

SaveTask is used after a CreateTask (V2) activity has created a Task instance. Save Task will persist a Task instance in the database by calling the API.

You can also use this activity to modify an existing task record (UPDATE mode). The following fields can be updated (corresponding Contact Manager Service API fields in parenthesis):

  • DueDate
  • Note (Comments)
  • OwnerUserId (AssignedStaffId)
  • Priority
  • StartDate
  • Subject
  • TaskResultId (ActivityResultId)
  • TaskStatusId (ActivityStatusId)

Save Task

Properties

SaveTask Properties
Property Value Required Notes
DisplayName String No Specify a name for the activity or accept the default.
Task InOutArgument<TaskEntity> Yes Specify the entity to be saved using a VB expression or variable.

To identify the variable type, in the Variable type field of the Variables pane, select Browse for Types.... In the 'Browse and Select a .NET Type' window, navigate to Cmc.Nexus.Crm.Contracts . Cmc.Nexus.Crm.Entities, select TaskEntity, and click OK.

variable type

See TaskEntity Class in the Anthology Student Object Library.

ValidationMessages OutArgument
<ValidationMessageCollection>
No Specify a variable that can be used to capture validation messages. For more information, see Capture Validation Errors.