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 / Adding new item if it ...
Power Automate
Unanswered

Adding new item if it does not exist

(0) ShareShare
ReportReport
Posted on by 8

So I am building a place to upload training certficates, I am using microsoft forms to let users uplolad their certs and they are saved into a list on sharepoint using a flow. However, I am having issues with getting the flow to determine if a user has already uploaded a cert, if they have then I want to update their item with with the new cert and a new date of renewal is set. 

 

The value I am check to see if someone has already uploaded a cert is the EmployeeID, if that ID exists the list should update, if not then the a new item should be created. To do this I get items and filter by Staff number and then do a conditional check to see if the length is 0, if it is then create new item but the issue I face is that when the staff number is not present the list is empty so the conditional check ends up being greyed out and not running. 

 

Here is my get items, outputs contains the staff number pulled from the user's profile who is uploading a cert. 

get items.PNG

 

My conditonal check

conditional check.png

 

As I said this results in the condition just being greyed out if the user has not uploaded a cert before. The flow all works if I remove any conditions but then users will end up with multiple separtate entries. The update user part also works if they exist. 

 

Output:output.png

 

 

What would be the best way to check if the staff number is already in the list? 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at

    @gareth2513 

     

    Check below link for your reference

     

    https://tomriha.com/how-to-check-if-sharepoint-item-already-exists-in-power-automate/

     

    Hope this will help you

     

    Thanks,

    Srini

  • gareth2513 Profile Picture
    8 on at

    Thanks @Srini007 That is acutally what I have been trying but using staff number rather than email but like I said when I do this I just get the greyed out condition. 

  • gareth2513 Profile Picture
    8 on at

    I actually ended up starting this from scratch, not sure what was throwing it off in the first flow but now it is working using the method above.

     

    Full Flow for those interested:

    full flow.png

     

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard