AzureCosmosDbUpdateOrCreateActionFlowAssignment 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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public 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

Implements

IAzureCosmosDbUpdateOrCreateActionFlowAssignment(CompanyDto, ActionFlowAssignmentDto, UserSessionData, CancellationToken)

Exceptions

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

See Also