web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Save uploaded images f...
Power Automate
Unanswered

Save uploaded images from Power Apps to Sharepoint Picture library

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I want to create a flow that allow me to save uploaded images by users in Power apps into my sharepoint picture library.

Firstly I want to check if the user has already uploaded his pictures (using ID), if yes I want to delete previous pictures and create new item with the new picture, else I just create a new item with the pictures (and some other informations like name, type of photo and project title which are asked to power apps).

 

So I created the following flow and I have an error I failed to solve : 

 

First I convert my power apps picture from json to jpg using one drive 

flow1.pngflow2.png

 

Then I check with get items if an entry has been already created with the following condition : 

length(outputs('Get_items')?['body/value']) is equal to 0

If the length(…) is 0, the item doesn’t exist yet, I can create it. If it’s not 0, the item already exists and I can use the ID from ‘Get items’ to update it. 

 

If yes :

flow3.pngflow4.pngflow5.png

 

If no I delete the previous item and I create a new one :

flow6.pngflow7.pngflow8.png

 

And when I try to save this flow I have this error : 

Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The action(s) 'Get_items' referenced by 'inputs' in action 'Condition' are not defined in the template.'.'.

 

Thanks in advance ! 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard