def periodFormat = { periodString, isMinute = false, defValue = null ->
xxx
}
|
Parameter
|
Description
|
Values
|
|---|---|---|
|
isMinute
|
Indicates whether the time unit is in minutes.
|
false
|
|
defValue
|
Default value of null.
|
null
|
"svmx_estimated_service_duration": "periodFormat(fields.SVMXC__Service_Duration__c, false, 'PT0H')",
"svmx_estimated_service_duration": "periodFormat(fields.SVMXC__Service_Duration__c, true, 'PT0H')"
|
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
|
|||