web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get details as separat...
Power Automate
Unanswered

Get details as separate string

(0) ShareShare
ReportReport
Posted on by 215

Hi 

I will receive mail from organization like below format

[  You have received a request for a quote

Email enquiry from

 

First Name : ONKARLast Name : SHINDEEmail Address :
xxxxyyyyzzz96@gmail.comMessage : TEST.IGNOREPhone Number : 77777777777Company
Name : ABCD ABB PVT LTDPostal Codes : 123123Area Of Interest : Diesel
Generators  ]

 

I want to get those red mark colored text out individually. Please help me out this 

   

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @ursNani 

     

    You can use split function for the above scenario.

     

    Here is how my flow looks like:

     

    Sundeep_Malik_0-1712165652189.png

     

    LineSpace Compose: Added to remove fields which are extracted with a line space.

    Sundeep_Malik_1-1712165685775.png

     

    Compose:

     

    Contains the input that you have given above.

     

    Sundeep_Malik_6-1712166031965.png

     

     

    Compose 2: To remove square brackets.

    Expression Used: replace(replace(outputs('Compose'),'[',''),']','')

    Sundeep_Malik_2-1712165721564.png

    Compose 3: To remove extra part that we dont require.

    Expression Used:  split(outputs('Compose_2'),'First Name : ')[1]

    Sundeep_Malik_3-1712165780196.png

    FirstName: To extract first name.

    Expression Used: split(outputs('Compose_3'),'Last Name : ')[0]

    Sundeep_Malik_4-1712165829917.png

    LastName:

    Expression Used: split(split(outputs('Compose_3'),'Last Name : ')[1],'Email Address :')[0]

     

    EmailAddress:

    Expression Used: replace(split(split(outputs('Compose_3'),'Email Address :')[1],'Message : ')[0],outputs('LineSpace'),'')

     

    Message: 

    Expression Used: split(split(outputs('Compose_3'),'Message : ')[1],'Phone Number :')[0]

     

    Output: 

    Sundeep_Malik_5-1712165962584.png

     

    CompanyName: 

    Expression Used: split(split(split(outputs('Compose_3'),'Company')[1],'Name : ')[1],'Postal Codes : ')[0]

     

    PostalCodes:

    Expression Used: split(split(outputs('Compose_3'),'Postal Codes : ')[1],'Area Of Interest : ')[0]

     

    AreaOfInterest: 

    Expression Used: trim(replace(split(outputs('Compose_3'),'Area Of Interest : ')[1],outputs('LineSpace'),''))

     

    I hope this helps 🙂

     

    Sundeep Malik.

     

    Looking for a New Job!!! Please Help!!!

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
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard