cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rohith351
Regular Visitor

Calling Post Import API in Azure Data Factory web Activity (Importing .PBIX file to POWERBI)

I Store my PowerBI report(.pbix file) in the Azure blob container in my storage account.

I have created an APP with the client ID and client secret and generates tokens from the endpoint. 
But when I calling Post an Import in Group API to import my file to my workspace using the file URL that shown in the properties, is returning an error with status code 400. 

Please explain or reach me out by helping me how to call an IMPORT API from HTTP REQUEST using AZURE Data FACTORY with web activity.

I am not able to add a file to a body in web activity in Azure Data Factory.

Please help me how can I add a file to the body in Azure Data Factory Web Activity for calling Post Import API
Waiting for your response.


This is the API url that I used rplacing The X with group ID.

 https://api.powerbi.com//v1.0/myorg/groups/XXX/imports?datasetDisplayName=mydataset001&nameConfl

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @rohith351,

Have you tested to use the file that storage in 'onedrive for business' with this API? As the document mentioned, it seems not told it allows you to use the link of other cloud storage. (they may contain the verify or authorization so that requests may not succeed processed)

Authorize access to blobs and queues using Azure Active Directory 

Imports - Post Import In Group 

Creates new content on the specified workspace from PBIX (Power BI Desktop), JSON, XLSX (Excel), RDL, or file path in OneDrive for Business.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

I have a similar issue can you please give me some help ? https://community.powerbi.com/t5/Developer/how-to-post-import-pbix-file/m-p/1598191#M27231

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps