periodInverseFormat
def periodInverseFormat = {periodString, isMinute = false, defValue = null ->
xxx
}
Inverse-transforms the periodString value to a numerical value.
Parameter
Description
Values
isMinute
Indicates whether the time unit is in minutes.
false
defValue
Default value ofnull.
null
Example 1
"SVMXC__Service_Duration__c": "periodInverseFormat(payload.fields.svmx_estimated_service_duration)"
Example 2
"SVMXC__Service_Duration__c": "periodInverseFormat(payload.fields.svmx_estimated_service_duration, true)",
Sample Transforms
Example
Original Fields
Transformed Fields
Number
Property
Name
Value
Name
Value
1
false
svmx_estimated_service_duration
P3DT3H5M6S
SVMXC__Service_Duration__c
270306
2
true
P6M7DT17H6M
For more information:
Was this helpful?