cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Need to convert an image stored in CDS to a .jpg (or .png) file saved in sharepoint

Hello,

 

I created an app in PowerApps that saves images to the Common Data Service.  I want to create a flow that stores the images in SharePoint.  Is this possible?  I was able to get the images to save, but they are in the incorrect format so i can't open them in sharepoint.  I have added an image of my flow below.

 

 

flow image.PNG

4 REPLIES 4
v-yuazh-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please share a screenshot of the flow run details?

 

I afraid that there is something wrong in the input of your Compose action in your flow.

 

If you want to enter a expression in the input field of Compose action, you should add a " " to the @expression such as screenshot below:

Capture.PNG

 

Best regards,

Alice

Anonymous
Not applicable

Hi @@v-yuazh-msft,

 

I have added screenshots below.  I added the quotations.  The flow runs successfully and a file is saved to sharepoint.  However, I am still unable to open the image file and it says it is in the wrong format.

 

flowrun1.PNGflowrun2.PNG

 

 

Have you tried base64tobinary() ?

Anonymous
Not applicable

Hi @sergeluca,

 

Yes, I tried base64toBinary() and the flow failed.  I received the following error: 'The template language function 'base64ToBinary' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,593)