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 Automate - Using Flows
Answered

store email subject values into array

(2) ShareShare
ReportReport
Posted on by 2,247

i need to store email subject into array values, how to store below compose values in below flow into array .Kindly help me with the expression

 

Veblitz_0-1720961496174.png

 

Veblitz_2-1720961563847.png

 

Veblitz_1-1720961529481.png

 

Sample incoming email 

 

Subject: Country:Kenya,Customer:client5

 

 

 

I have the same question (0)
  • Verified answer
    bscarlavai33 Profile Picture
    679 Super User 2025 Season 2 on at
    Re: store email subject values into array

    This expression should do it:

    split(replace(replace(outputs('Compose'), 'Country:'''), 'Customer:'''), ',')



    bscarlavai33_0-1720985277713.png

     

  • Veblitz Profile Picture
    2,247 on at
    Re: store email subject values into array

    Thanks a lot but its should convert upper or lowercase check in the below expression or we need to store in a variable and convert again to upper or lowercase characters or caps 

     

    example1: country,customer->lowercase

    Subject: country:Kenya,customer:client5

    example 2:Country,Customer->Uppercase startswith in both Country,Customer

    Subject: Country:Kenya,Customer:client5

    example 2:Country,Customer->CAPS

    Subject: COUNTRY:KENYA,CUSTOMER:CLIENT5

     

    so above sorts of probabilities too can exist in the subject 

     

  • Verified answer
    Dieter Gobeyn Profile Picture
    29 on at
    Re: store email subject values into array

    The trick is to transform everything to lower, and afterwards perform the replacement. This should eliminate the dependency on the capitals:

     

     

    split(replace(replace(tolower(outputs('Compose')), 'country:', ''), 'customer:', ''), ',')

     

     

    sdf1fsd5fds1_1-1721069980867.png

    If I've been helpful, please mark my answer as Resolved/Answered and give it a thumbs up. This will help others too.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 647 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 350 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow