cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Trim function error

I have an error in trim expression. Could someone please help?

 

error.jpg

 

Annotation 2019-08-02 202326.jpg

 

and when I typed trim() in expression and came back to dynamic content I do not see my fields.

 

error1.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Trim function error

Posting Date is probably a DateTime Field and Trim only works with Text.  YOu could try changing your formula to 

Trim(formatDateTime(body('Get_items')?['Posting_Date']), 'D')


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
1 REPLY 1
Super User
Super User

Re: Trim function error

Posting Date is probably a DateTime Field and Trim only works with Text.  YOu could try changing your formula to 

Trim(formatDateTime(body('Get_items')?['Posting_Date']), 'D')


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 274 members 5,367 guests
Please welcome our newest community members: