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 / 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
    12,982 Super User 2025 Season 2 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,443 Super User 2025 Season 2 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

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