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.
Thank you so much! I really appreciate your help
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')
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.
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']
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!