IAzureCosmosDbUpdateOrCreateActionFlowAssignment Method

Update or Creates an action flow assignment in the database. If an assignment with the same ActionFlowEvent> already exists for the company, it will be updated.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task UpdateOrCreateActionFlowAssignment(
	CompanyDto? company,
	ActionFlowAssignmentDto assignment,
	UserSessionData createdBy,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
Company to assign the flow for (or for a global assignment.
assignment  ActionFlowAssignmentDto
Action flow assignment to create or update
createdBy  UserSessionData
User creating or updating the action flow assignment
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

Task
Task completion

Exceptions

UnauthorizedAccessExceptionThrown if the user createdBy did not have the correct permissions
ArgumentNullExceptionThrown if assignment or createdBy are

See Also