cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Patch Audio Files to OneDrive / Blob Storage

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.
Highlighted
Helper I
Helper I

Re: Patch Audio Files to OneDrive / Blob Storage

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.

 

Highlighted
Power Apps
Power Apps

Re: Patch Audio Files to OneDrive / Blob Storage

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-...

Highlighted
Advocate III
Advocate III

Re: Patch Audio Files to OneDrive / Blob Storage

Great news and thank you for the follow up! 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,255)