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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Parsing text and extra...
Power Automate
Unanswered

Parsing text and extracting text

(0) ShareShare
ReportReport
Posted on by

I receive an automated email message with tabular data. I have used the "HTML to Text" function and received the output listed below. I am trying to capture each identifier such as "Name," "Company," "Address," etc. There are seven such fields that I'd like to capture so that they can be displayed in an Excel file across columns.


Search Criteria:

Name

: Wiley Coyote

Company

: Acme Corporation

Address

: 123 Sunset Ln

City

: Palo Alto

State

: CA

Country

: United States

Zip Code

: 98765

Search type:

Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Hi @ssmith1 

    Here's one way to do it:

    DJ_Jamba_0-1711573179846.png

    The first 3 actions are Compose actions:
    1st Compose - just hit enter. That's how we will split the text to parse

    2nd Compose - The text you posted as an example

    3rd Compose:

     

     

    split(outputs('Text_to_parse'),outputs('Line_break'))

     

     


    Use Filter array to get the columns, by putting Compose 3 in the From field and using the following formula (entered in Advanced mode)

     

     

    @or(not(startsWith(item(), ':')),endswith(item(), ':'))

     

     

    Here's the result for columns:

    DJ_Jamba_1-1711573539039.png


    If you want values, change the Filter array to:

    @startsWith(item(), ':')


    Result for values:

    DJ_Jamba_2-1711573762300.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard