Add a new Data Object.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxstring Add(
string dataClass,
Object data,
Guid? caseId = null,
bool notifyChange = true
)
Parameters
- dataClass String
- Data Class name
- data Object
- Data Object to be added.
- 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
StringId of the added Data Object.
Examplevar dataApi = ctx.Use<IDataApi>();
var orderId = dataApi.Add("Order", new
{
OrderNo = 100,
Customer = "Jane",
Total = 15.5
});
See Also