Forum Discussion
Hey,
I would also like to understand why I am having issues using the rest snap which is not working once i use API generated from a third party SDK that now only uses HTTPS eg: https://OurServer/ServiceName/Sericves.svc/getInfo?filter=filter
before the third party application upgraded we were able to use the rest snap as it was using HTTP eg: http://OurServer/ServiceName/Sericves.svc/getInfo?filter=filter
Note the HTTPS links works in other applications, the browser and postman but not in snaplogic.
Debra, please elaborate on “having issues”. That’s not much to go on.
- jcornelius3 years agoNew Contributor III
‘"+ $yourfield.split(’,‘).join(’','‘) +"’
- arvindnsn3 years agoContributor
Good to know using the simple join function to achieve the output. Thank you!!
- Abhishek_Soni373 years agoContributor
With this expression, you should be able to make it work.
pipeline:
Test_Expression_2023_06_17 (1).slp (3.5 KB)Let me know if that helps.
🙂Cheers,
- arvindnsn3 years agoContributor
This worked perfect. I was trying something with the map function but was missing something. Thanks for the solution.
- darshthakkar3 years agoValued Contributor
Hi @arvindnsn,
Did you try using the basic concatenation function?
- darshthakkar3 years agoValued Contributor
I used a simple conditional statement in my mapper like below:
$field002!=""?" ' "+$field002+ " ' ":""
You might have to tweak a bit if you’re expecting multiple values in your second stream.
- darshthakkar3 years agoValued Contributor
Yes, multiple ways to achieve the desired output. Some cover all use cases and some won’t. If you have an edge case scenario, that will need a custom formula.
- arvindnsn3 years agoContributor
Yes, Correct. Thank you for the suggestion and input!!