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 / Extract Outlook table ...
Power Automate
Unanswered

Extract Outlook table data in excel table

(0) ShareShare
ReportReport
Posted on by 9

Hello everyone.

 

I need one help in extracting data from outlook. i manage to extract all data from outlook but i stuck at place. I am not able to understand how to extract data which have no specific end character. i need help in extracting last column data pls someone help me.

I am using function like: 

1. When a new email arrives

2. HTML to text

3. add a row into a table

 

My data is like

 

Region : South

trim(first(split(last(split(body('Html_to_text'),'Region:')),'Branch')))

Branch Name: 445

trim(first(split(last(split(body('Html_to_text'),'Branch Name:')),'Branch Code:')))

RM Name: Rohit Nair

trim(first(split(last(split(body('Html_to_text'),'RM/BSSM Name:')),'RM ID:')))

 

PS ID: 2003272 

KamleshKadu_0-1701232429664.png

 

Please help in getting ps id number. 

 

Thank you

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at

    Hi @KamleshKadu ï¼Œ

    Please try this expression:

    vyetonggumsft_1-1701234853066.png

    trim(split(split(body('Html_to_text'),'HI')[0],'PS ID:')[1])

     

    Best Regards,

    Sunshine Gu

     

     

  • KamleshKadu Profile Picture
    9 on at

    You have add HI in text but that is body text and that wont fix i need ps id and its number after that number there will be blank or other text. and request you to pls suggest expression 

     

  • v-yetonggu-msft Profile Picture
    on at

    Hi @KamleshKadu ï¼Œ

    Is your PS ID number a fixed length?

    If so, please try this expression:

    vyetonggumsft_0-1701241629968.png

     

    substring(split(outputs('Html_to_text')?['body'],'PS ID: ')[1],0,7)

     

     

    Best Regards,

    Sunshine Gu

  • v-yetonggu-msft Profile Picture
    on at

    Hi @KamleshKadu ,

    Because there are many newlines, an error will occur when you use decodeUriComponent('%0A') to locate, so you'd better find a special and fixed index field.

    You can also try this:

    vyetonggumsft_1-1701244432710.png

    trim(split(split(outputs('Html_to_text')?['body'],'*')[0],'PS ID: ')[1])

     

    Best Regards,

    Sunshine Gu

  • KamleshKadu Profile Picture
    9 on at

    I am not able to add data in excel

    KamleshKadu_0-1701247633535.png

     

  • v-yetonggu-msft Profile Picture
    on at

    Hi @KamleshKadu ï¼Œ

    When you finished writing the formula, did you click the update button?

    Please check the formula of your ‘PS ID’ column.

     

    Best Regards,

    Sunshine Gu

  • KamleshKadu Profile Picture
    9 on at

    Hello, I am new in power automate. can you please help me with this. project stuck on that part only.

  • KamleshKadu Profile Picture
    9 on at

    KamleshKadu_0-1701321850378.png

    KamleshKadu_1-1701321974806.png

     

    I need expression which i can add in ps id column.

     

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard