web
You’re offline. This is a read only version of the page.
close
Skip to main content
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:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Power Automate SharePoint List split multi-line text column

    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,484 on at
    Re: Power Automate SharePoint List split multi-line text column

    @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
    Re: Power Automate SharePoint List split multi-line text column

    @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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard