Skip to main content

Notifications

Power Automate - General Discussion
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 ! 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard