Click or drag to resize

IDataApiUpdateMany(String, Object, Boolean) Method

Updates multiple existing data objects based on an array of IDs with patch data.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
void UpdateMany(
	string[] doIds,
	Object patchData,
	bool notifyChange = true
)

Parameters

doIds  String
An array of IDs representing the data objects to be updated.
patchData  Object
Data to be updated.
notifyChange  Boolean  (Optional)
Skip the data change notification when updating data.
Example
C#
var dataApi = ctx.Use<IDataApi>();
dataApi.UpdateMany(new string[] { "doId1", "doId2" }, new 
{
    Total = 20,
    BillingAddress = "123 Sunset Blvd"
});
See Also