cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

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 Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,704)