Skip to content

Add documentation and flow fix for duplicate quarantine notification emails#10660

Closed
Copilot wants to merge 4 commits intomainfrom
copilot/fix-email-notifications-issue
Closed

Add documentation and flow fix for duplicate quarantine notification emails#10660
Copilot wants to merge 4 commits intomainfrom
copilot/fix-email-notifications-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 6, 2026

Users receiving hundreds of duplicate "app released from quarantine" emails. Root cause: Dataverse webhook triggers on record updates even when admin_appisquarantined value unchanged. Daily sync flow updates all app records, firing notification flow repeatedly.

Changes

Flow modification

  • Added admin_quarantineappdate to AdminSetappquarantinestatus flow select statement
  • Enables deduplication logic implementation by users
// Before
"$select": "admin_displayname, admin_appdeleted, admin_appisquarantined"

// After  
"$select": "admin_displayname, admin_appdeleted, admin_appisquarantined, admin_quarantineappdate"

Documentation

  • QUARANTINE-EMAIL-FIX-README.md: Entry point with 4 solution approaches (immediate workaround, deduplication logic, sync optimization, batch notifications)
  • TROUBLESHOOTING-QUARANTINE-EMAILS.md: Root cause analysis, 5 solution patterns with trade-offs
  • FIX-QUARANTINE-EMAIL-FLOW.md: Step-by-step implementation for recommended fix (add admin_lastquarantinenotificationdate field + conditional logic)
  • ISSUE-RESPONSE-QUARANTINE-EMAILS.md: Technical details for maintainers
  • GITHUB-ISSUE-RESPONSE.md: User-facing response template

Recommended implementation

Add tracking field to prevent notifications within 24h:

  1. Create admin_lastquarantinenotificationdate column on admin_app table
  2. Add condition before email send: check if notification sent today
  3. Update tracking field after sending

Alternative simpler fix: Check if admin_quarantineappdate was set/cleared within last 24h before sending notification.

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - QUESTION] I have repeated received emails stating that the app has been released from quarantine</issue_title>
<issue_description>### Does this question already exist in our backlog?

  • I have checked and confirm this is a new question.

What is your question?

Hi there,
I have received hundreds of emails in the following format. why does this trigger? How can I stop receiving the same emails every day? what is its purpose?
Image

What solution are you experiencing the issue with?

Core

What solution version are you using?

Oct 2025

What app or flow are you having the issue with?

Not sure

What method are you using to get inventory and telemetry?

None</issue_description>

<agent_instructions>The user is receiving hundreds of emails stating that the app has been released from quarantine, why does this trigger? How can we stop receiving the same emails every day? what is its purpose? Analyze the issue and provide troubleshooting steps to stop the repeated emails.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@harini-2-y Hi @nico-0823 , Thank you for bringing this to our attention. The emails you are receiving are compliance notifications indicating that your app’s status has changed from Quarantined to Released. These notifications are designed to inform app owners that the app is available for use again.
  1. Identify the Triggering Flow
    Go to your CoE Starter Kit environment.
    Check for flows related to "Quarantine" (e.g., Admin | Quarantine and Review).
    Examine run history for flows that send notifications about quarantine release.
  2. Review Flow Logic
    Look for repeated triggers or loops in the flow: Is the same app being flagged and released multiple times?
    Ensure that the logic properly marks apps as "reviewed" or "released" so notifications are not sent repeatedly.
  3. Notification Settings
    Check notification actions (e.g., "Send Email" steps).
    Verify recipients—ideally, only app owners or specific admins should get these emails.
    Consider adding a condition to prevent duplicate notifications within a defined period.
  4. Reduce Notification Frequency
    Implement throttling or batching in the flow: Send a daily summary instead of individual emails.
    Use Power Automate’s "Delay" or "Do Until" actions to avoid rapid-fire notifications.
  5. App/Flow Mapping
    Use the CoE inventory tables (Apps, Flows) to identify which objects are being quarantined/released.
    If you don’t have inventory set up, consider enabling it for better tracking
@harini-2-y Hi @nico-0823 , Apologies for the delayed response. Could you please confirm if the issue has been resolved? If the problem persists or you require further assistance, feel free to reach out to us.

Custom agent used: CoE Custom Agent
Specialized agent for triaging and fixing issues in the CoE Starter Kit. Always consult the official CoE docs and the team’s SharePoint notes first, then mine prior GitHub issues and the CoE Common Responses playbook.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits January 6, 2026 07:12
Co-authored-by: harini-2-y <235104376+harini-2-y@users.noreply.github.com>
Co-authored-by: harini-2-y <235104376+harini-2-y@users.noreply.github.com>
Co-authored-by: harini-2-y <235104376+harini-2-y@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with repeated email notifications from quarantine Add documentation and flow fix for duplicate quarantine notification emails Jan 6, 2026
Copilot AI requested a review from harini-2-y January 6, 2026 07:16
@harini-2-y harini-2-y closed this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CoE Starter Kit - QUESTION] I have repeated received emails stating that the app has been released from quarantine

2 participants