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 / Unable to get the corr...
Power Automate
Answered

Unable to get the correct email body when using When a new email arrives (V3)

(1) ShareShare
ReportReport
Posted on by 29

Hello, need help to understand why i can't get the correct email body with email address from the email i received in Outlook. This is how the email looks like in Outlook.

Georgia_H_0-1697459463745.png

This is the flow Image A: I need to extract the requestor email address from the email received in Outlook. But when i download the Output in "When a new email arrives V3" the below is what i see. See Image B:

Image A:

Georgia_H_1-1697459566080.png

Image B:This is what i see in the Output of When a new email arrives V3. There's no email being captured. The content changed from what i see in Outlook.

Georgia_H_2-1697459868906.png

Please, can anyone help to enlighten me on this issue? Which step did i do wrongIy. I have been struggling for a week now.

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

    Hi @Georgia_H ,

     

    Here's the flow finding the starting position of characters using indexof() and then using substring() to get the desired text.

     

    trice602_0-1697462173635.png

     

     

    Compose // find the first "(" plus 1

     

    add(indexOf(body('Html_to_text'), '('),1) 

     

    Compose 5 // find the ")"

     

    indexOf(body('Html_to_text'), ')')
     
    Compose 6 // get the email adddress
     
    substring(body('Html_to_text'), outputs('Compose'), sub(outputs('Compose_5'), outputs('Compose')))
     
    Compose 2 // find "Power BI Report" plus 16
     
    add(indexOf(body('Html_to_text'),'Power BI Report'),16)
     
    Compose 3 // find "Manage in Power BI"
     
    indexOf(body('Html_to_text'),'Manage in Power BI')
     
    Compose 4 // get report title
     
    substring(body('Html_to_text'),outputs('Compose_2'),sub(outputs('Compose_3'),outputs('Compose_2')))
     
    trice602_1-1697462455034.png

     

    trice602_2-1697462479177.png

     

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Georgia_H ,

     

    I modified my flow with an edit in case didn't see the modified version.  The report title may need some help because in testing I didn't have the buttons, but I think the framework will help you keep going; you may need to modify the last indexof().

     

     

     

     

  • Georgia_H Profile Picture
    29 on at

    Thanks Tom for the checking. Unfortunately my issue is different.

    What is see in Outlook email is not what is translated in Power Automate using "When a new email arrives (V3)".

     

    This is the email i received in Outlook: There's an email address from the requester Manu.

    Georgia_H_0-1697508765837.png

    This is what i see in the Output of "When a new email arrives V3" in Power Automate. No longer see the email address of Manu. Hence the "get Requester email" step could not find any email.

    Georgia_H_0-1697508991323.png

    I need help to understand why the format changed.

     

     

     

  • VictorIvanidze Profile Picture
    13,073 on at

    Please show the full body part:

    "body":"<html etc. 

  • Georgia_H Profile Picture
    29 on at

    Here you go.

  • Verified answer
    VictorIvanidze Profile Picture
    13,073 on at

    There is no requestor email address at all. 

    1) (Dirty method) You can retrieve the address by user name from the Active directory

    2) To suggest something else I have to have the whole access request message. Could you send it to test1(at)testivasoft.com ?

  • Verified answer
    Georgia_H Profile Picture
    29 on at

    Yes, you are right. There's no email address at all. That is very strange because from Outlook i could see the email address. See snippet.

    As a workaround, I have tried the first approach by Search for User V2. I managed to resolve the issue for now. Many thanks for your suggestion. Kudos to you 😊

    Georgia_H_0-1697679512332.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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard