Forum Discussion
Dynamically set source connection in copy activity and connection in lookup, script activity
- 1 year ago
Unfortunately, that is not possible yet. One workaround is to create a switch on the workspace id and duplicate your activity with the correct connection for that environment. I'm fully aware that that is not maintainable in the long run, but could be a short term workaround until parameters are possible.
Can you please expand with an example? I am looking to do this same thing
I solved this creating a REST connection source (I tested with an HTTP connection and it also works) type with a regular url like https://google.com then, in the relative URL driection, I used the URL I want to connect, in my case I tested an API that gives a JSON, the destiny I used was a lakehouse file. When I run the pipeline, my empty file was full of the JSON I wanted to.