Server connect download with dynamic parameter not work

Hi everyone,
I use Node.JS for the backend and I have a problem that I can't solve about downloading files via API with dynamic parameters.

Here's what I did:

  1. I created an API with a GET parameter iddoc (pic1)
  2. I created a new routing connected to the connect server (pic2)
  3. On the page I created the link with the dynamic parameter by reading the id from the repeat (pic3)
  4. When I click on the button the error you see in screenshot 4 comes out

At this point I tried to set a static path because I feared that the error was due to the fact that the file is not in the public folder but in a private folder since the files must not be reachable from the url.
With the static path the download works.

I tried to create a dynamic variable to verify that the dynamic path was correct and I get exactly the same result (pic5/6)

I havent done it but just trying to help (and learn at the same time)... :slightly_smiling_face:

From what I read it is better to assign the link via the routing button:

And there you should assign the iddoc param there:

An explenation from Patrick that I think is related...