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 / Power Automate SharePo...
Power Automate
Unanswered

Power Automate SharePoint List split multi-line text column

(0) ShareShare
ReportReport
Posted on by 2

I am working on a Flow that takes values from a SharePoint List multiple lines of text column type and puts into another SharePoint List single line of text column type. This part I have working. The part that is failing for me is I would like to split the multiple lines of text on a carriage return and I cannot figure out to do this. When I attempt to do the following split 

 

split(outputs('Get_items')?['body/value'], '\n')

 

I get the following error:

 

"Unable to process template language expressions for action 'Apply_to_each' at line '0' and column '0': 'The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#split for usage details.'.
 
I have inserted a screenshot of my flow. I am fairly new to Power Automate so I am probably missing something very obvious. Any help you can provide is very much appreciated.
Capture2a.JPG
Categories:
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @guff416 

    You are currently splitting entire thing or something.

    Try using this:

    split(outputs('Get_items')?['body/value/ColumnName'], '\n')

    where ColumnName=MultiLineTextColum

    or

    split(outputs('Get_items')?['ColumnName'], '\n')

  • Sundeep_Malik Profile Picture
    6,501 on at

    @guff416 

    And if the above does not work too, just go into settings of sharepoint list and make the column not required.

  • guff416 Profile Picture
    2 on at

    @Sundeep_Malik when I try using 

    split(outputs('Get_items')?['body/value/ColumnName'], '\n')  or split(outputs('Get_items')?['ColumnName'], '\n')

    I get the error: "The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each')?['WorkspaceName_x0028_s_x0029_']' is of type 'String'. The result must be a valid array."

     

    I made the column not required. It seems like there is an object type mismatch. 

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
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard