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

Trim for a field

Hi,

 

I need to trim one of my share point field and insert into SQL table. Could you help me with the function? For example: share point get items field name is "Residual_Date".

 

Annotation 2019-08-02 190448.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Trim for a field

Hi @Anonymous 

 

The value in the trim function ResidualDate should be picked from dynamic content 

Not manually entered

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

9 REPLIES 9
Super User
Super User

Re: Trim for a field

Hi @Anonymous 

 

Use the trim function in an expression 

example : trim(dynamiccontentyourfield)

 

Trim function removes leading and trailing whitespaces

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

Re: Trim for a field

Do you mean to say like this?

 

Annotation 2019-08-02 202326.jpg

Super User
Super User

Re: Trim for a field

Hi @Anonymous 

 

Use the expression pane

 

Within this pane trim(yourfield)

 

 Capture.PNG

 

Anonymous
Not applicable

Re: Trim for a field

I get some error.

 

Annotation 2019-08-02 202326.jpg

Super User
Super User

Re: Trim for a field

Hi @Anonymous 

 

The value in the trim function ResidualDate should be picked from dynamic content 

Not manually entered

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

Re: Trim for a field

I tried expression but still flow failed.

 

Annotation 2019-08-02 202326.jpg

Super User
Super User

Re: Trim for a field

Hi @Anonymous 

 

You are still hardcoding ResidualDate

 

It needs to come from dynamic content

 

First enter trim() in expression

Then switch to dynamic content to read the residula date value

 

trim(<dynamic ccontent picked residual date>)

Anonymous
Not applicable

Re: Trim for a field

I am really sorry for so many questions. Could you let me know which one I need to choose here? I don't see residual date in dynamic content after typing trim in expression. I also don't see "see more" option.

 

Annotation 2019-08-02 202326.jpg

Super User
Super User

Re: Trim for a field

Hi @Anonymous 

 

If this is running in a for loop action

 

use the following expression

 

trim(item()?['Residual_Date']) 

you can type the above directly in the expression field

 

 

If this is not running in a for loop

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand 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: 345 members 5,141 guests
Please welcome our newest community members: