Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Dynamically set source connection in copy activity and connection in lookup, script activity

Wanted to understand how we can provide the source connection dynamically rather than manually selecting from the dropdown for copy activity, lookup, script, get metadata activity, etc. as we have to deploy the pipeline to other workspaces which uses different connection name (DEV/QA/UAT/PROD).

abhilash_o_p_0-1729243374491.png

 

1 ACCEPTED SOLUTION
FabianSchut
Super User
Super User

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. 

View solution in original post

4 REPLIES 4
AngryFabricUser
New Member

I personnaly solved this problem by creating a dummy connection to "https://" (nothing else). This is accepted by Fabric.

I can then set the dynamic url using the relative url part.

 

Can you please expand with an example? I am looking to do this same thing

Hello.

I answered too fast about this one...  Fabric does accept to create a "dummy" connection for url "https://" , and it does accept you to add a dynamic relative url to fill the missing part.... BUT this does NOT work .... configuration is "accepted", but when you run the pipeline with the copy data activity it just fails... with a cryptic error.. so.. non.. no way to do that for now.... (was soooo easy in ADF or synapse... Fabric is a dramatic rollback 5 years ago for us...)

FabianSchut
Super User
Super User

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. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.