cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Highlighted
Resolver III
Resolver III

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
Highlighted
Resolver III
Resolver III

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

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Users online (8,491)