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 Subject Line int...
Power Automate
Answered

Split Subject Line into variables

(0) ShareShare
ReportReport
Posted on by 16

hello everyone,

 

I have a email with subject line   strSubject = a,b,c

I use array and split function to create an array :      array(split(variables('strSubject'),','))   which result:   

[
  "a",
  "b",
  "c"
]

Now how do I assign varA = "a", varB="b", varC="c" so that I can use to update my SharePoint list?  

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    @pt2huynh 

    jinivthakkar_0-1615396643672.png

    variables('varName')[0] /* returns value a */
    variables('varName')[1] /* returns value b */
    variables('varName')[2] /* returns value c */

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • pt2huynh Profile Picture
    16 on at

    Thank you for responding!  I did what was suggested and I got the following error.  Please assist.  Thank you.

     

    FlowFlowErrorError

     

     

     

  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @pt2huynh 

     

    @jinivthakkar  answer is correct according to your requirement. To resolve your current error you need to remove  the  Compose 2 action step and change the Initialise variable var name action step split expression to use the strSubject variable instead of the compose 2 reference.

     

    Thanks

  • pt2huynh Profile Picture
    16 on at

    Thank you so much to both!.  Worked like a charm.

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard