system.kanoa.inventory.updateCostCenterField(costCenterId, field, value, userId)
Updates a single named column on a cost center record, identified by costCenterId, to the given value.
This is a lighter-weight alternative to updateCostCenter when only one field needs to change. Only costCenterCode and costCenterName are valid values for field.
Parameters
costCenterId Integer: Id of cost center to update
field String: Valid options are costCenterCode, costCenterName
value String: Value to update to
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
message String None if success
Example
costCenterId = 14
field = "costCenterName"
value = "Packaging & Fulfillment"
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.updateCostCenterField(costCenterId, field, value, userId)
print recordsModified, message