Passing parameters

Very new to Knime, just trying to pass variable from one node to another .
I have following setting.


I want to use that flow variable as parameter here in the XXX.
What is the syntax that writes the flow variable in XXXX ?

Is there any thing I need to do in green or red area?

I am sure this is a very simple issue. The URL works and gets data w/o variable. I do not know how to pass variable or syntax to pass variable to the URL.

Hey there,

what you want to do is definitely achievable.

In order to make it work, you will need to create the full URL though - you can not just pass the parameter to GET REQUEST to attach it to the end.

You can do this with a loop set up and also potentially without one.

If the parameter is always at the end you can save the baseURL (everything until and including the “=” at the end) into e.g. a table creator node. Then you use String Manipulation / Column Expressions / Expression node to add your parameter to the end.

I have created below example showing how this works by looping over your parameters and also how to simply create a new column in your parameter table to create the correct URL for each row, which is then passed to Get Request. Doing it that way you can take advantage of tweaking the Get Request node setting around concurrency etc. if you know what is allowed by the API / Endpoint you are hitting.

Here is the Workflow prototype - I pinged google search with some key words :-).

paramGetReq.knwf (90.5 KB)

5 Likes

This worked like a charm, thanks Martin.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.