Click or drag to resize

IDataApiClone Method

Clone new object and add to database.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
string Clone(
	string id,
	Guid? caseId = null,
	bool notifyChange = true
)

Parameters

id  String
The data object id to be cloned.
caseId  NullableGuid  (Optional)
Id of the case that the object will be added to. If null, the data object will be added to the case of the workflow.
notifyChange  Boolean  (Optional)
Skip the data change notification when updating data.

Return Value

String
The new data object id.
Example
C#
var dataApi = ctx.Use<IDataApi>();
var clonedId = dataApi.Clone(id);
See Also