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 / Split a Sharepoint Ite...
Power Automate
Suggested Answer

Split a Sharepoint Item into a new row when item contains a semicolon

(0) ShareShare
ReportReport
Posted on by
I am trying to create a flow that will do the following 
-> When an item is created on a Sharepoint List
-> Get items from "Column A" and "Column B" 
-> If text in column A OR Column B contains a ';'
-> Split text and create a new item
 
I have tried multiple flows; however, I keep getting stuck when setting a variable, getting this error: The variable 'SplitResults' of type 'Array' cannot be initialized or updated with value of type 'String'. The variable 'SplitResults' only supports values of types 'Array'.
 
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    What do you have in Set variable action. Are you using a split expression?
     
  • Suggested answer
    David_MA Profile Picture
    14,189 Super User 2026 Season 1 on at
    I am not fully understanding your create an item part, but I can show you how to split the values and create an array so you can use it to create the items. Your flow will look like this, and you will need to repeat these actions for both columns. 
     
     
    • This is the expression in the condition: contains(outputs('Get_item')?['body/Explanation'],';') and you would replace it with the expression for your column.
    • To set the array variable, you would use an expression like split(outputs('Get_item')?['body/Explanation'],';').
    • Then just replace the Compose Create Item action with a Create item action and use the current item if you want to use it for creating the item:
    Your expressions will be more like this createArray(split(triggerOutputs()?['body/Explanation'], ';')) based on your trigger. I used a Get item action just to demonstrate this.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard