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

Patch Audio Files to OneDrive / Blob Storage

 

Hi everyone,

 

I am trying to upload Microphone Audio to OneDrive or Blob Storage.

 

I've seen these examples of uploading images in PowerApps to Blob Storage and OneDrive:

 

Has anyone used a Patch function to send Microphone.Audio to Blob or OneDrive storage?

 

I've provided screenshots of the solution I am working on below. Ideas / suggestions appreciated.  Many thanks in advance.  

 

Implementation

  • Below is a snap of the button OnSelect - it is attempting to Patch the Microphone.Audio to the OneDrive datasource (Excel - Table1).
  • After the Patch function, I am clearing the Collection of Audio and Refreshing the gallery of data in OneDrive

AppCapture.png

 Results

 The Excel file in OneDrive is updated. The MicAudio column get's the path to the .3gp audio file stored in the Android PowerApp's Local File Storage

  • The audio file is not uploaded to OneDrive, but the Excel table data is updated with the file's path on the Android Device
  • The second link above shows a folder that is created by the service to store the images as they are uploaded from the PowerApp.  I would am trying to acheive the same functionality for an audio file.

 ExcelCapture.png

 

 

4 REPLIES 4
v-micsh-msft
Community Support
Community Support

Hi @seanpanter,

 

For image uploading into OneDrive, there is corresponding document published:

Add images to Excel from PowerApps

 

But there is no document talking about Audio files.

There should be some pre-defined mechanism for PowerApps service to auto-generate the image folder when working with image files, but I don't think there is also a similar mechanism defined for the audio files.

 

Besides, using the API should work.

 

Also adding an idea for reference:

Using patch to depost picture does so with file extension

 

Regards,

Michael

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

Hi Michael,

 

Much thanks for the prompt response. 

 

I was hoping that there might be a similar mechanism for audio files - often media files are handled in similar manner. 

 

As of now, I haven't found a way of moving audio files that have been captured with the Microphone control into a new storage area using stock PowerApps functionality.  It will stay on the device that it was captured on (unless you are using the web client - in this case it will be stored in Azure Blob Storage).

 

@pratapladhani - I've seen your response on this thread regarding storing audio files from Power Apps.  Can you confirm whether or not you can use a Patch function call to move an audio file into another datasource?  Any guidance or advice on this topic would be much appreciated.

 

Thank you.

 

You can now upload any type of file to Azure Blob Storage, including audio and use it back in your PowerApp. https://powerapps.microsoft.com/en-us/blog/upload-files-from-powerapps-using-the-azure-blob-storage-...

Great news and thank you for the follow up! 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (2,741)