cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Collector
Kudo Collector

Extract media from PowerApps application's CDS entity to device's local storage

Is there a way for a user of a PowerApps application to  extract / download an media (e.g. Picture)  to his mobile device or to his laptop's hardisk storage ?

 

I have an app quite similar to the site Inspection application  .  But additionally, users require that the pictures collected via the application be extractable/downloadable to a local storage for further analysis.

 

 

5 REPLIES 5
Highlighted
Power Apps
Power Apps

Re: Extract media from PowerApps application's CDS entity to device's local storage

Adding @EvanChakiMSFT who may be able to help here.

Thanks,
Clay.
Highlighted
Power Apps
Power Apps

Re: Extract media from PowerApps application's CDS entity to device's local storage

You will need to use the Launch https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-param Command to do this, it will open the image, then the user will need to push on the image and tap download to device.

 

You have two ways to do this:

  1. If the image you need to download is the entity image (the one on the top left of the record), then you can use the Launch command and this as an example: "https://YOURORGNAME.crm.dynamics.com/image/download.aspx?attribute=entityimage&entity=account&id=" & ThisItem.accountid 
  2. If your image is a URL field in your entity, then you can do this as an example: Launch(ThisItem.websiteurl)
Highlighted
Anonymous
Not applicable

Re: Extract media from PowerApps application's CDS entity to device's local storage

Hi @EvanChakiMSFT,

 

I am trying to download an image using your first suggestion but have had no luck getting it to work so far.  Can you please help with this?  I am getting the error seen in the screenshot below every time I click the Launch button I created.

dynamics error.PNG

My button has the following "Launch" function:  Launch("https://enkaytech.crm.dynamics.com/image/download.aspx?attribute=image&entity=receiptschild&id=" & ThisItem.PrimaryId)

 

My entity is called "'Receipts Child'", and my image field is called "Image".  I am also using the old CDS.

 

Thanks!

Highlighted
Power Apps
Power Apps

Re: Extract media from PowerApps application's CDS entity to device's local storage

It looks like you have two items that need to be updated, one is the entity name, you will need to use the logical entity name like new_receiptschild instead of just receiptschild and the id should be something like new_receiptschildid.  Here is some additional info on how it works: https://msdn.microsoft.com/en-us/library/dn817886.aspx

Highlighted
Anonymous
Not applicable

Re: Extract media from PowerApps application's CDS entity to device's local storage

Hi  @EvanChakiMSFT,

 

I tried your suggestion of using the logical entity name but am still getting the same error.  Do I need a Dynamics CRM subscription in order for this to work?

 

 

Thanks!

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

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

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!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (7,410)