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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
Anonymous
Not applicable

Dynamically calling REST APIs in Data Factory under Fabric

I am attempting to call dynamically an open API in Data Factory under Fabric. I connected to a REST API where I provided names and ids. I have the following pipeline:

 

mmiteva_0-1689250074655.png

My Lookup activity configuration:

 

mmiteva_1-1689250337188.png

 

My Foreach activity configuration:

 

mmiteva_2-1689250612186.png

 

My Copy activity (source):

 

mmiteva_3-1689251728637.png

My Copy (destination) activity:

 

mmiteva_4-1689252104476.png

 

I would like to send 5 .json files (naming based on location_name) to Lakehouse, but I encounter difficulties exporting multiple files.

Please advise on the configuration highlighted in red.

 

Thanks!

 

 

5 REPLIES 5
Anonymous
Not applicable

@ajarora Thanks! I have just suceeded. Missing brackets were the case.

 

My current implementation involves obtaining data from multiple APIs simultaneously every day. I want to implement a process that does not rewrite or overwrite new data but appends it, taking into consideration the possibility of duplicates in consecutive API calls. Is it possible to achieve this using Data Factory in Fabric?

Hello. Glad to know things worked.

For your follow up ask, if your ask is to use copy and write new data into lakehouse tables, we support "append" and "overwrite" mode already. But to handle duplicates you actually need UPSERT capability. This is a new functionality we are exploring, and if you are interested, can you please vote on this existing fabric idea about it: https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=87f3d168-6022-ee11-a81c-6045bdc01ce4

 

If I misunderstood your ask, please clarify.

Anonymous
Not applicable

Basically, I have just looked at that 'append' and 'overwrite' concern Lakehouse Tables, but not Lakehouse Files (which is my case).

 

mmiteva_0-1689359372787.png

There are various options of Copy Behavior. Should I use them? Or any workarounds in terms of UPSERT logic?

I dont see how you can use "Files" to be able to maintain a tabular data, ie rows with unique keys. Please ping me offline, I can guide you further on how to proceed on that. But hoping the original issue you reported is addressed.

ajarora
Microsoft Employee
Microsoft Employee

Your destination activity looks incorrect, did you provide your concat logic via the "Dynamic content" button that shows up on hover over the "file name" textbox ?

 

ajarora_1-1689297173510.png

 

One handy way for debugging expression (dynamic content) is to check the activity input of your activity run, and see if the value got "resolved" properly to the desired value at runtime or not.

Helpful resources

Announcements
May FBC25 Carousel

Fabric Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.