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
Highlighted
Dual Super User
Dual 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

View solution in original post

9 REPLIES 9
Highlighted
Dual Super User
Dual 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

Highlighted
Anonymous
Not applicable

Re: Trim for a field

Do you mean to say like this?

 

Annotation 2019-08-02 202326.jpg

Highlighted
Dual Super User
Dual Super User

Re: Trim for a field

Hi @Anonymous 

 

Use the expression pane

 

Within this pane trim(yourfield)

 

 Capture.PNG

 

Highlighted
Anonymous
Not applicable

Re: Trim for a field

I get some error.

 

Annotation 2019-08-02 202326.jpg

Highlighted
Dual Super User
Dual 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

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Trim for a field

I tried expression but still flow failed.

 

Annotation 2019-08-02 202326.jpg

Highlighted
Dual Super User
Dual 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>)

Highlighted
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

Highlighted
Dual Super User
Dual 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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (1,863)