Skip to Content

How to set dynamic host in NWDS URL Pattern for receiver rest adapter (GET Operation)

Apr 20 at 02:59 PM


avatar image

Hi all.

I have a requirement to set a dynamic host based on the content of my payload message. For example:




If have "Field1" starting with "8xxx", I want my URL Pattern {host} to be "QAS", in case its "9xxx" I want the URL Pattern {host} to be "QAS-2".

I have already tried to use XPath expression, but no success. I'm transforming a message from XML (SAP ECC output) to JSON (legacy system) to get an information from there.

Thanks for your help.

host.png (72.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Chih-Chieh Chan May 07 at 02:43 AM


I think you need to use "adapter specific attribute" (instead of "XPath expression"), and prepare the attribute by using message mapping reading your payload and translate into the customized URL you would like.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Chih-Chieh Chan.

Thanks for your answer!
I achieved this by using UDF and Dynamic Configuration for the parameter needed.