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 / Substring outputs - fi...
Power Automate
Answered

Substring outputs - first characters

(0) ShareShare
ReportReport
Posted on by 4
Hi. (noob alert)

I'm working on a flow moving data from a Microsoft Form via Excel to Planner Tasks.

One challenge is that the form does not have a specific "Title" field. I want to fill the title of the task with the first 30 characters from available dynamic content.
 
When using this expression:  substring(outputs('description'),0,30)
I get the firt 30 characters as the title. But in the case there was less than 30 characters available the flow does not work.

How does a working expression look like?
I'd like to populate the "Title" field in Planner with any text available, but not more than 30 characters
Categories:
I have the same question (0)
  • Verified answer
    David_MA Profile Picture
    13,491 Super User 2026 Season 1 on at
    Try using this expression instead: if(lessOrEquals(length(outputs('description')), 29), outputs('description'), substring(outputs('description'), 0, 30))
  • NA-24101339-0 Profile Picture
    4 on at
    Now, how about that!

    Silky and buttery smooth. Thank you so much, David MA.
  • Chriddle Profile Picture
    8,525 Super User 2026 Season 1 on at
    Check function slice()
     If endIndex isn't specified or greater than the string length, search up to the end of the string.

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 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard