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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerAutomate Conditio...
Power Automate
Unanswered

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

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    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

  • vandam2 Profile Picture
    on at

    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 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard