Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

PowerAutomate Condition with strings

(1) ShareShare
ReportReport
Posted on by

Hello gang, my flow keeps failing at the Condition 

i have a variable called varAttachmentName, the value comes out properly as example 7824884_85350_2024.pdf

 

i have a condition that checks if the varAttachmentName starts with 78, but it fails, so i try '78' but that doesnt work either

i also tried with using a formula 'startsWith(variables('varAttachmentName'), '78')' but no luck
 

i need it to look at starts with rather than contains.

 

not sure if there is a specific way to use a condition on a string when using 'starts with' ?

varAttachmentName.png

added screenshot 

thanks in advance

 

 

 

  • vandam2 Profile Picture
    on at
    Re: PowerAutomate Condition with strings

    thank you so much, since i already initialized the variable as a string, i just needed to add "78" and it worked like a charm, i did try single quotes, but not double, i now know to use double going forward

     

    thank you so much 

  • Verified answer
    Ellis Karim Profile Picture
    11,113 Super User 2025 Season 1 on at
    Re: PowerAutomate Condition with strings

    Hi @vandam2 ,

     

    Please try one of the following, where we tell the condition that 78 is a string and not a number (integer) value:

    Snag_d2fc97a.png

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as ☑️ Solved.
    If you like my response, please give it a Thumbs Up.
    My Blog Site

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1