cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
CameronTCD
Level: Powered On

Condition not working as intended

Hi 

 

I have a 'get items' with a filter query.

I then initialise a variable to count the number of items that were collected after the filter.

I then have a condition whereby if there is only one result, update the list, if there is less, create an item.

 

However in the case that there is only one result... it chooses to create an item?

 

I'm very confused.

 

I've attached photos.

11.png

 

22.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
FoDelement
Level 8

Re: Condition not working as intended

@CameronTCD 

Since you are using it as a String and not an INT, put it in quotes.

 

"1"

2.jpg1.jpg

View solution in original post

1 REPLY 1
FoDelement
Level 8

Re: Condition not working as intended

@CameronTCD 

Since you are using it as a String and not an INT, put it in quotes.

 

"1"

2.jpg1.jpg

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 318 members 5,517 guests
Please welcome our newest community members: