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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Trebor84
Helper II
Helper II

API/Web Service Calls for new records only

Hi, i have been experimenting with web services and have attached an example using Google Translate to translate a phrase for each row in a table.

 

In my job I need to use a web service to retrieve thousands of results in a table.  Is there any way I can do this on "new" records only to avoid having to repeat unnecessary api calls?  My data source is a SharePoint folder with a large number of Excel files which I combine into a table to run through a web service and new files are sent weekly. Is there any way I can maybe append to an existing table any new records that go through the api call and then remove those from the original table or maybe a completely different approach?

 

https://filebin.net/djhrkashvhg3qct5 

 

Thanks

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @Trebor84 

 

Power BI and Power Query is not a tool like databases that can store previous result for you. You would need to store the result somewhere else.

 

You can consider using R or Python to export Power Query result into some local files. 

Export data from Power Query to Local Machine or SQL Server using R scripts - RADACAD

Export data from Power BI to csv using Python – The BIccountant

How to Auto-Schedule Data Export From Power BI - sqlitybi

 

Or if you have Power Automate, you can also use Power Automate to create a flow to read Excel file, loop every row and call API to get data, then store the result to an existing file or a new file. Below are some video tutorials on Youtube for your reference. You will find more great tutorials there.  

How to use Excel in Power Automate Desktop - YouTube

How to loop through each row in an Excel file - Power Automate Desktop Excel actions tutorial - YouT...

Power Automate Desktop 101 - extract web data - YouTube

Microsoft Power Automate | Add data to Excel, get data from Excel, Conditions and Send Email | Guide...

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

mahoneypat
Employee
Employee

Please also see if you can adapt the approach in this article to work in your scenario.

https://www.esbrina-ba.com/incrementally-load-from-sap-apis-or-almost-anything/?s=03 

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


ImkeF
Super User
Super User

Hi @Trebor84 ,
I would use dataflows to write to my own Azure blob store all new files on a daily basis: Configuring dataflow storage to use Azure Data Lake Gen 2 - Power BI | Microsoft Docs
Then just import new files in the dataflow and import the whole Azure blob folder to PBI.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors