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 / Unable to split text w...
Power Automate
Answered

Unable to split text with semicolon

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Everyone,

 

I have a text column in SharePoint with content saving it as "test;testing" something like this and I want PowerAutomate to split the text based up on semicolon and run " apply to each" for each word which was split. I am not sure if I am using right steps or not. 

 

example: 1. For a selected Item

2. Get Item

3. Compose -split(body('Get_item')?['location'], ';')     --- Here I am trying to split words into two, example into test and testing

4. Apply to each - output of compose

Categories:
I have the same question (0)
  • Verified answer
    rsaikrishna Profile Picture
    3,703 Microsoft Employee on at

    @Anonymous 

     

    1. For a selected Item

    2. Initialize an array variable varArray and leave the blank value

    3. Get Item

    4. Set variable action - varArray with split(body('Get_item')?['location'], ';')

    5. Apply to each - output of varArray

     

    1.JPG

     

    Expression I used to set variable:

    split(variables('varInput'),';')
     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • mkumagai167 Profile Picture
    12 on at

    @rsaikrishna 

    I'm trying to do the similar thing, but I got an error at Set Variable. 

    mkumagai167_0-1623182533298.png

    mkumagai167_1-1623182648351.png

     

    Expression is 

    split(body('Get_items')?['Before'],';')

    mkumagai167_2-1623182686856.png

    Do you have any idea what I'm missing? Thank you!

     

    Mari

     

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
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard