quantityInverseFormat
def quantityInverseFormat = {quantityString,index,nullDefVal = null ->
xxx
}
Inverse-transforms the quantityString value to an amount or unit value.
Parameter
Description
Values
quantityString
The printable representation of the quantity value.
null
index
The index of an element in the quantityString value.
0: quantity amount; 1: quantity unit.
defValue
Default value ofnull.
null
Example 1
"Quantity__c" :  "quantityInverseFormat(toString(payload.fields.svmx_quantity),0)"
If svmx_quantity = [10, dd574d5a-c7bf-11e0-b724-001ec950a80f], Quantity__c = "10".
Example 2
"Quantity__c" : "quantityInverseFormat(toString(payload.fields.svmx_quantity),1)"
If svmx_quantity = [10, dd574d5a-c7bf-11e0-b724-001ec950a80f], Quantity__c = "seconds".
Was this helpful?