IData ApiAdd External DO Method
Add a new external data object.
Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
Id of the added Data Object.
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
string AddExternalDO(
Object data,
Guid? caseId = null
)Parameters
- 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.
Return Value
StringId of the added Data Object.
Example
C#
var dataApi = ctx.Use<IDataApi>();
var orderId = dataApi.AddExternalDO(new
{
OrderNo = 100,
Customer = "Jane",
Total = 15.5
});