Add a new Data Object.
Namespace:
Casewhere.Runtime.DSL.Api
Assembly:
Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax string Add(
string dataClass,
Object data,
Guid? caseId = null
)
Parameters
- dataClass
- Type: SystemString
Data Class name - data
- Type: SystemObject
Data Object to be added. - 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:
StringId of the added Data Object.
Examples var dataApi = ctx.Use<IDataApi>();
var orderId = dataApi.Add("Order", new
{
OrderNo = 100,
Customer = "Jane",
Total = 15.5
});
See Also