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 / Using "Trim" expressio...
Power Automate
Answered

Using "Trim" expression with Dynamic Content

(0) ShareShare
ReportReport
Posted on by 28

Hi

 

I'm having some issues using Flow and Microsoft Forms.

I have a form to collect feedback on an Application ID. This feedback is then passed to a Sharepoint list.

That triggers another flow that has a filter array between the Feedback list and the Master list, where i want to submit the feedback to as well.

The issue is, using Forms, people sometimes include a blank space at the end of the applicationID, which in turns, returns blank from the Filter Array.

I tried to add an expression upon the write from Forms to Sharepoint but it's giving me an error:

 

Right now it just fills it straight in:

@{body('Get_response_details')['rb4e2f716f3db4692aa8022940b704a99']}

 

This is my expression, within one of the fields in a "Create Item" Sharepoint action:

trim(@{body('Get_response_details')['rb4e2f716f3db4692aa8022940b704a99']})
but when i click "OK" it gives me an error saying "The expression is invalid".
 
What am I doing wrong here? Can i not trim whitespace from a dynamic content field?
 
Thanks in advance
Categories:
  • Verified answer
    AlanPs1 Profile Picture
    2,471 on at

    hi @ChrisRoxor , thank you for posting this.

    Try expression:

    trim(body('Get_response_details')['rb4e2f716f3db4692aa8022940b704a99'])

    I would expect this is correct format as @{} will not make valid WDL.

     

    If you find my posts helpful, please mark with thumbs up

    If this solves your issue, please click "Accept as Solution"

    Any questions, just ask.

    Thanks, Alan

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard