quantityFormat
def quantityFormat = { amount, unitName, quantityFldId, nullDefVal = null ->
xxx
}
Transforms the amount and periodString values to the Service Board quantity datatype field.
Parameter
Description
Default Values
amount
The quantity value.
null
unitName
The unit (for example, seconds, meters, kilos, inches that the quantity value is used to specify.
null
quantityFldId
UUID of the quantity selected for the field..
UUID of the quantity selected for the field.
nullDefValue
Default value of null.
null
Example
"dev_quantity_field": "periodFormat(fields.Amount__c, fields.Unit__c, 'dd2076b8-c7bf-11e0-b64f-001ec950a80f')",
If Amount__c = 10 and Unit__c = seconds, dev_quantity_field = [10, dd574d5a-c7bf-11e0-b724-001ec950a80f].
* 
In the example, dd2076b8-c7bf-11e0-b64f-001ec950a80f is the UUID of the quantity that is selected for dev_quantity_field, and dd574d5a-c7bf-11e0-b724-001ec950a80f is the UUID of the seconds unit.
Was this helpful?