Increase value of an attribute by specified increment amount.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxvoid 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.
Examplevar dataApi = ctx.Use<IDataApi>();
var customerId = ctx.Input["Id"];
var attributeName = "AvailableBalance";
var incrementAmount = 10000;
dataApi.Inc(customerId, attributeName, incrementAmount);
See Also