IDataApiClone Method

Clone new object and add to database.

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
string Clone(
	string id,
	Guid? caseId = null,
	bool notifyChange = true,
	params string[] ignoreProperties
)

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.
ignoreProperties  String
The properties will be ignore when cloning the data object

Return Value

String
The new data object id.

Example

C#
                    var dataApi = ctx.Use<IDataApi>();
var clonedId = dataApi.Clone(id);
                  

See Also