periodFormat
def periodFormat = { periodString, isMinute = false, defValue = null ->
xxx
}
Transforms the periodString value to the Service Board interval datatype.
Parameter
Description
Values
isMinute
Indicates whether the time unit is in minutes.
false
defValue
Default value of null.
null
Example 1
"svmx_estimated_service_duration": "periodFormat(fields.SVMXC__Service_Duration__c, false, 'PT0H')",
Example 2
"svmx_estimated_service_duration": "periodFormat(fields.SVMXC__Service_Duration__c, true, 'PT0H')"
Sample Transforms
Example
Original Fields
Transformed Fields
Number
Property
Name
Value
Name
Value
1
false
SVMXC__Service_Duration__c
270306
svmx_estimated_service_duration
P3DT3H5M6S
2
true
P6M7DT17H6M
For more information:
Was this helpful?