Clone new object and add to database.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxstring 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
StringThe new data object id.
Examplevar dataApi = ctx.Use<IDataApi>();
var clonedId = dataApi.Clone(id);
See Also