Skip to content

Conversation

Copy link

Copilot AI commented Dec 10, 2025

The "Clean Up and Delete" flow was querying archive approvals using rollup fields through lookup relationships, which returns zero results in Dataverse OData queries.

Changes

  • Admin | Inactivity notifications v2 (Clean Up and Delete) flow:
    • Apps filter: admin_AppLookup/admin_appenvironmentexcusedfromarchivaladmin_AppLookup/admin_AppEnvironment/admin_excusefromarchivalflows
    • Flows filter: admin_FlowLookup/admin_flowenvironmentexcusedfromarchivaladmin_FlowLookup/admin_FlowEnvironment/admin_excusefromarchivalflows

Technical Details

Rollup fields (SourceType=3) aggregate data from related records but cannot be filtered through lookup relationships in OData. The fix traverses the lookup chain to access the source field directly:

ArchiveApproval → App/Flow → Environment → excusefromarchivalflows

This matches the pattern used in the "Start Approval" flows.

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] ISSUE TITLE</issue_title>
<issue_description>### Does this bug already exist in our backlog?

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

Describe the issue

we run the flow Admin | Inactivity notifications v2 (Start Approval for Apps) - unable to list app not launched or marked modified since past time.
we have the correct configuration. Follow the steps, the tables Archive approval - no records found., also the PowerApps app table we can identify the columns "app environment excused from Archival" the value is Yes and App excused from Archival is NO. can you help to check any parametes is correct?

Expected Behavior

"type": "OpenApiConnection",
"inputs": {
"parameters": {
"entityName": "admin_archiveapprovals",
"$select": "admin_archiveapprovalid, admin_appname",
"$filter": "admin_AppLookup/admin_appenvironmentexcusedfromarchival eq true or admin_AppLookup/admin_appexcusedfromarchival eq true ",
"$expand": "admin_AppLookup($select=admin_appenvironmentexcusedfromarchival, admin_appexcusedfromarchival)"

What solution are you experiencing the issue with?

Governance

What solution version are you using?

3.14

What app or flow are you having the issue with?

Admin | Inactivity notifications v2 (Start Approval for Apps)

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

No response

Anything else?

No response</issue_description>

<agent_instructions>Please analyze this issue and provide guidance </agent_instructions>

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

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.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix bug in inactivity notifications for app approvals Fix OData filter to use environment lookup instead of rollup field in archival cleanup Dec 10, 2025
Copilot AI requested a review from mohamrizwa December 10, 2025 10:04
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 - BUG] ISSUE TITLE

2 participants