web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow condition depend ...
Power Automate
Answered

Flow condition depend on numbers

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
I have the same question (0)
  • CollabTechie Profile Picture
    442 on at

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @CollabTechie hello,

     

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

  • Maexchen Profile Picture
    75 on at

    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"

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @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.'. >"

  • Verified answer
    Maexchen Profile Picture
    75 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard