Click or drag to resize

IDataApiInc Method

Increase value of an attribute by specified increment amount.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
void Inc(
	string id,
	string attributeName,
	Object value
)

Parameters

id  String
The identifiers of the data object.
attributeName  String
The attribute name of the data object
value  Object
The increment amount of the data object.
Example
C#
var dataApi = ctx.Use<IDataApi>();
var customerId = ctx.Input["Id"];
var attributeName = "AvailableBalance";
var incrementAmount = 10000;
dataApi.Inc(customerId, attributeName, incrementAmount);
See Also