Skip to content

Fix incorrect solution flow detection in backup reminder notifications#10838

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/fix-backup-reminder-message
Closed

Fix incorrect solution flow detection in backup reminder notifications#10838
Copilot wants to merge 2 commits intomainfrom
copilot/fix-backup-reminder-message

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 11, 2026

Inactivity notification flows were incorrectly flagging all flows as solution-managed, causing users to receive misleading "automatic deletion not possible" warnings even for non-solution flows.

Root Cause

Flows used admin_workflowentityid (a PVA-specific GUID) to detect solution membership instead of the correct admin_issolutionflow boolean field.

Changes

Admin | Inactivity notifications v2 (Start Approval for Flows)

  • Added admin_issolutionflow to query $select clause
  • Updated backup reminder condition:
- @{if(equals(outputs('Reset_value_Flow_Archive_Request_Ignored_Since')?['body/admin_workflowentityid'], null), '.', ', however, since this flow is part of a solution...')}
+ @{if(equals(items('Create_Archival_Request_for_Each')?['admin_issolutionflow'], true), ', however, since this flow is part of a solution...', '.')}

Request Orphaned Objects Reassigned (Child)

  • Added admin_issolutionflow to query $select clause
  • Simplified isSolnFlow property:
- "isSolnFlow": "@if(equals(items('Add_flows_to_array')?['admin_workflowentityid'], null), false, true)"
+ "isSolnFlow": "@items('Add_flows_to_array')?['admin_issolutionflow']"

Impact

Solution-managed flows will continue to show the deletion warning. Non-solution flows will now correctly omit it.

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] Reminder to Backup Inactive Flow Marked for Deletion is Creating Confusion</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

When sending Back Up Reminders, the text "however, since this flow is part of a solution, automatic deletion is not possible. You will need to delete the flow or the entire solution manually" is appended also to Flows that are not part of a Solution;

Inside the Flow "Admin | Inactivity notifications v2 (Start Approval for Flows)", there is a step called "Backup reminder 2", where Users are reminded to backup their Flows marked for deletion.

Within this action, there is an expression which checks whether the Flow is part of a solution, and if so, appends the text ", however, since this flow is part of a solution, automatic deletion is not possible. You will need to delete the flow or the entire solution manually."

The expression is the following:

@{if(equals(outputs('Reset_value_Flow_Archive_Request_Ignored_Since_4')?['body/admin_workflowentityid'], null), '.', ', however, since this flow is part of a solution, automatic deletion is not possible. You will need to delete the flow or the entire solution manually.')}

If I understand correctly, the check if a Flow is part of a solution, is done by looking at the "workflowentityid" parameter. However, if I check the same parameter in the Flow table, I see the description: "GUID used by PVA", which doesn't seem to be related to the fact that a Flow is or isn't part of a solution.

This leads to the fact that the text is appended to flows which are not part of a solution.

Wouldn't it be better to check if Flow is part of a Solution, using the "admin_issolutionflow" parameter ?

Image

Expected Behavior

When sending backup reminders, the text "however, since this flow is part of a solution, automatic deletion is not possible. You will need to delete the flow or the entire solution manually" should only be included if the Flow is indeed part of a Solution.

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.50.3

What app or flow are you having the issue with?

Admin | Inactivity notifications v2 (Start Approval for Flows)

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

Run the Flow "Admin | Inactivity notifications v2 (Start Approval for Flows)" assuming there are inactive Flows that are not part of a Solution. The text "however, since this flow is part of a solution, automatic deletion is not possible. You will need to delete the flow or the entire solution manually" is then appended, even if the Flow is not part of a solution.

Anything else?

No response</issue_description>

<agent_instructions>provide the answer of mentioned scenario which mentioned in this ticket </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 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.

… orphaned objects flows

Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix backup reminder message for non-solution flows Fix incorrect solution flow detection in backup reminder notifications Feb 11, 2026
Copilot AI requested a review from mohamrizwa February 11, 2026 04:06
@mohamrizwa mohamrizwa 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 - BUG] Reminder to Backup Inactive Flow Marked for Deletion is Creating Confusion

2 participants