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 / Take Right 6 character...
Power Automate
Answered

Take Right 6 characters of a string

(0) ShareShare
ReportReport
Posted on by 611

For some reason I'm getting an error on this function, does anyone know how to get the right 6 characters of a string?

 

substring(

      triggerOutputs()?['body/{Name}'],

      length(triggerOutputs()?['body/{Name}'])-6,

      6)

 

Error - the expression is invalid

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @TesDA 

    You need a sub() expression to subtract the number of characters from the string length.

    See my example below:

    image.pngimage.png

  • TesDA Profile Picture
    611 on at

    Worked flawlessly. Appreciate it!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 271 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 171 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 148 Super User 2026 Season 2

Last 30 days Overall leaderboard