cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sharepointguy
Helper I
Helper I

Upload file from SharePoint to Azure Blob

I have a flow which runs whenever a new publishing page is created in the "Pages" library. I want to upload the PublishingPageImage to Azure Blob storage for use in PowerApps.

 

What I was thinking was, with an HTTP request I will fetch the PublishingPageImage image URL. Then store this file in OneDrive, get the file content and then store it in Azure Blob. But this requires a lot of slicing and dicing of strings and is quite confusing. I wish there could be a better way out. 

 

Any help would be appreciated.

2 REPLIES 2
v-alzhan-msft
Community Support
Community Support

Hi @sharepointguy ,

 

Could you please share a screenshot of your flow that runs whenever a new publishing page is created in the "Pages" library?

Have your take a try with the Create Blob action to upload the PublishingPageImage to Azure Blob storage?

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-alzhan-msft,

 

Yes. I did look at the Create Blob Action which takes Blob name and content. My issue is I have to do a lot of steps to get the file content. 

  1. I have to get the URL of the image stored in the SharePoint Publishing Images library (Requires multiple actions including HTTP requests, converting of HTML to text, appending my site collection URL)
  2. I then have to store the file in OneDrive intermittently (This requires a temporary file name)
  3. Then I have to get the contents of the file
  4. Use Create Blob with file content from Onerive to store the file in Blob Storage
  5. Delete the file from OneDrive

I was hoping to get a shorter / easier way to accomplish the process.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,919)