I have one requirements in Groovy mapping( JSON to XML ) in CPI.
From the source I have 3 different fields. I need concat them with the separator "comma" and send it to the target system. all 3 fields may come or not from source. As of now i have done like below.
BTEXT(q.Btext__c. concat(',').concat(q.Abs__c)) In this case if one field misses "comma" also coming. Here TEXT is the Target field and Billing__c, Abs__c are source fields.
if source fields is not mandatory so please help here to achieve my requirement. Thank you