Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Identify outbound emails that have not been replied to regarding records in a particular status from a custom table

(0) ShareShare
ReportReport
Posted on by 128

We will probably achieve this via Power Automate and I wasn't sure whether to post here or in the Power Automate forum.

 

Our customers have paid Power Apps licenses, with email tracking turned on - so outbound emails from the model driven app are tracked in Outlook, with inbound replies automatically associated with the correct record in Dataverse.  We do not have any Dynamics 365 subscription - this is purely a Power Apps paid license solution.

 

We want to identify records associated with an outbound email sent from the custom solution that have not been replied to.  The email is sent from within the custom solution, and is an initial email (not a reply), so it will be the first in the email conversation thread - so parentactivityid is null.

 

What I am hoping to do is:

  • find all shed records with statuscode eq to "Enquiry" -  SHEDS array
  • find all outbound emails with parentactivityid eq null for Sheds in SHEDS array - EMAILS array
  • remove from EMAILS collection any emails where the activityid is referenced in parentactivityid of any subsequent inbound emails (because that assumes customer has replied).
  • this will leave me with a list of emails not replied to (I think)

I have two questions

  1. Is there an easier or better way to identify outbound emails not replied to than what I've described? (Using Power Apps license, not D365 license)
  2. Is my logic sound?

 

  • Verified answer
    sb_teal Profile Picture
    128 on at
    Re: Identify outbound emails that have not been replied to regarding records in a particular status from a custom table

    Thanks @LinnZawWin this is how I ended up doing it:

    - populate one array with all sheds in particular status with outbound email with empty regarding column

    - populate a second array with all sheds in particular status with inbound email

     

    Then did an except type approach to return sheds in first array but not in second array.  From review of the data it seems to be providing us the required data.  The tricky bit was the EXCEPT - but I found a tutorial from Damo Bird that was close to what I needed - https://www.damobird365.com/efficien-union-except-and-intersect-great-method/.

    sb_teal_0-1685069488743.png

     

  • Linn Zaw Win Profile Picture
    2,982 on at
    Re: Identify outbound emails that have not been replied to regarding records in a particular status from a custom table

    Power Automate cloud flow would be an easy solution.

    In a cloud flow, you can query the Emails and Order by Regarding column. Then, loop through and look for the Sheds record with only 1 Email.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics