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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Get Email (v3) return ...
Copilot Studio
Answered

Get Email (v3) return to PVA

(0) ShareShare
ReportReport
Posted on by

Hi PVA community, 

Apologies, bit of an amateur trying to get to grips with flows in PVA. I wondered if it was possible using the Get Email V3 function to return content to PVA. 

 

For context I'm hoping employees can search to see if an email has been received from a customer to a shared mailbox. Using power automate to then inform the employee via PVA whether or not the email has been received.

 

I've attach the below image for what I'm hoping to achieve, I'm just having difficulties with the branched conditions. I've tried using condition & compose but no avail. 

 

Thank you so much for any help.

 

Matthew5_0-1639424139151.png

 

I have the same question (0)
  • Matthew5 Profile Picture
    on at

    Checking out similar posts in the power automate community Solved: Get emails (V3) - action if no results - Power Platform Community (microsoft.com),

    I think I've got the action if no email received (I hope).

     

    Ideally it would have an action for - if 0 emails received return a message to PVA along the lines of "no email received"
    However, if there was an email there it would return date/time received etc.

    Thank you!

     

    Matthew5_0-1639426733902.png

     

  • Verified answer
    Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at

    Hi @Matthew5,

     

    I would use a string variable at the beginning of your flow. In the condition you can set that variable with either the receivedDateTime value (of the first e-mail it found) or your own custom message if it hasn't found anything.

     

    Below is an example of that approach.

     

    first(outputs('Get_emails_(V3)')?['body/value'])['receivedDateTime']

     

    messagefrombot.png 

  • Matthew5 Profile Picture
    on at

    Thank you so much! That's worked. 

    Not the end of the world but I don't suppose you know if there's a way to format the way the date/time is returned. It's in an unusual format.

     

    Matthew5_0-1639569803418.png

     

  • Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at

    Hi @Matthew5,

     

    Yes, you can use a formatdatetime function for that.

     

    Change the expression to for example to the below to get 15-12-2021 (dd-MM-yyyy).

     

    formatDateTime(first(outputs('Get_emails_(V3)')?['body/value'])['receivedDateTime'], 'dd-MM-yyyy')

     

     

  • Matthew5 Profile Picture
    on at

    Thank you so much! I really appreciate your 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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 633

#2
Vish WR Profile Picture

Vish WR 301

#3
Haque Profile Picture

Haque 216

Last 30 days Overall leaderboard