cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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

Anonymous
Not applicable

Re: Trim for a field

Do you mean to say like this?

 

Annotation 2019-08-02 202326.jpg

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

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

Anonymous
Not applicable

Re: Trim for a field

I tried expression but still flow failed.

 

Annotation 2019-08-02 202326.jpg

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>)

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

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
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,180)