Clone new object and add to database.
Namespace:
Casewhere.Runtime.DSL.Api
Assembly:
Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax string Clone(
string id,
Guid? caseId = null
)
Parameters
- id
- Type: SystemString
The data object id to be cloned. - caseId (Optional)
- Type: SystemNullableGuid
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.
Return Value
Type:
StringThe new data object id.
Examples var dataApi = ctx.Use<IDataApi>();
var clonedId = dataApi.Clone(id);
See Also