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

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard