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 / Only get the first 7 c...
Power Automate
Answered

Only get the first 7 characters of a string?

(1) ShareShare
ReportReport
Posted on by 628

As part of a flow I am matching to see if part of a string is contained in another. I can usually count on the first 7 characters doing the job.

 

How do I a string regardless of length and only use the first 7 characters of it?

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    As long as the string will always be longer than 7 characters you can use the following to get the first 7 characters.

     

    substring(string,0,7)

     

  • MJain Profile Picture
    2,450 on at

    Hi @dlprentice ,

     

    You can use substring function available in flow. Put the expression as substring('your parameter',0,7) to get the required string.

     

    Thanks

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard