Skip to Content
0
Dec 26, 2022 at 03:37 PM

HOW CAN I MODIFY THE CONTENT OF A SPECIFIC NODE OF A SUCCESS-FACTORS EC RESPONSE BODY USING GROOVY

384 Views

Hello everyone I hope you are very well in these Christmas festivities.I have a question. How can I modify the content of a specific node using groovy in an integration flow. Example.

SFSF EC input or response body.

image.png

I need to make a simple logic that every time the value "1" is found in the custom_String19 field, make the change for the two letters "NA". but I want to do it specifically for GROOVY to learn how to handle response bodies with code

OUT BODY

image.png

Could someone help me with the code snippet or a brief explanation of how I could do it with groovy? thank you all and MERRY CHRISTMAS AGAIN.

Attachments

image.png (39.0 kB)
image.png (29.8 kB)