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

Flow condition depend on numbers

Hello everyone,

 

I'm creating a flow that have a condtion that say if the file 'name' contains 'a number' but it return an error.

How can i fix it ?

 

Thank you in advance,

 

1.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Maexchen
Level: Powered On

Re: Flow condition depend on numbers

there is your answer. try writing "1" (in quotation marks, though it might have to be single ones '1'). when that works for something with a 1 in it try "1","2","3","4",.... if that doesn't work you need a line for every number.

View solution in original post

5 REPLIES 5
CollabTechie
Level 8

Re: Flow condition depend on numbers

Hi George,
Do you want the condition to = yes if the file name contains any number?

GeorgesElias
Level: Powered On

Re: Flow condition depend on numbers

@CollabTechie hello,

 

Yes the condition is :  if "Name" contains "1234"

Maexchen
Level: Powered On

Re: Flow condition depend on numbers

I think the question was if you want to check for any number (1 or 2 or 3 or 4 or 5 or...) or specifically "1234"

GeorgesElias
Level: Powered On

Re: Flow condition depend on numbers

@Maexchen 

 

the condition is for any number that contains/exist in the Title

 

it give the following error : 

 

"< Unable to process template language expressions for action 'Condition' at line '1' and column '2777': 'The template language function 'contains' expects parameters of matching types: a dictionary and a key (string), an array and a value (object), or a string and a substring. The provided types 'String' and 'Integer' are incompatible. Please see https://aka.ms/logicexpressions#contains for usage details.'. >"

Highlighted
Maexchen
Level: Powered On

Re: Flow condition depend on numbers

there is your answer. try writing "1" (in quotation marks, though it might have to be single ones '1'). when that works for something with a 1 in it try "1","2","3","4",.... if that doesn't work you need a line for every number.

View solution in original post

Helpful resources

Announcements
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 Kudoed Authors (Last 30 Days)
Users online (3,743)