E9.2 How to trim in DataRequest ?

EdmondR91

Member
Does anyone have any idea on how to imitate SQL TRIM functionality in Data Request within Orchestrator ?
I have a data request based on a UDC but my input isnt working because of all the spaces within the feild which makes it impossible to get the value i'm looking for.

Help ?!? :p
1608321105206.png
 

lfurino

Member
You can map the output of the data request to an input in a groovy script and use the trim() function. I included a screenshot of a working example below.
1608322110187.png
 
Discover how to build no-code data integrations and business process automations.

lfurino

Member
It's the same thing. You can map the input parameter directly to the groovy script and then use the output of the groovy script in a future step or output.
 

EdmondR91

Member
Thank you , sorry for the late reply I was on vacation .
With the trim it didn't work so i had to refer to Lpad which worked fine based on your script too

Happy new Year
It's the same thing. You can map the input parameter directly to the groovy script and then use the output of the groovy script in a future step or output.
 
Top