microsoft / coe-starter-kit

Other
722 stars 212 forks source link

[CoE Starter Kit - BUG] In Power Platform admin view app, App/Flow/Environment Deleted columns is not updating #8553

Closed thotavinod590 closed 1 day ago

thotavinod590 commented 1 week ago

Does this bug already exist in our backlog?

Describe the issue

Hi Team,

In the Power Platform admin view app, if App/Flow/Environment is deleted, the columns are not updating. We have turned on the flow below. It is deleting the record from the list. But the flow description is that it will update the column (App Deleted, Flow Deleted) Flow description: This long running flow runs every other week and compares CoE to the tenant to determine if any objects were deleted since last run. Either just marks them as deleted (if env var Also Delete from CoE = no) or deletes them from the CoE (if Also Delete from CoE = yes). Can you let us know how these columns will be updated once the app/flow/environment deleted

Flow name: CLEANUP - Admin | Sync Template v4 (Check Deleted)

image

Expected Behavior

No response

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.22

What app or flow are you having the issue with?

Power Platform Admin view

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

  1. Open Power Platform Admin view
  2. Click PowerApps /Flows/Environments from the left menu
  3. Check for the columns (App Deleted, App Deleted on)

Anything else?

No response

AB#3688

Jenefer-Monroe commented 1 week ago

When was the app deleted? And when was the last run of CLEANUP - Admin | Sync Template v4 (Check Deleted)?

thotavinod590 commented 1 week ago

Hi @Jenefer-Monroe Today we have deleted the app and triggered the flow manually.

image

Jenefer-Monroe commented 1 week ago

That run time is way too short for this flow. Can you please open the run and show me what you see? image

thotavinod590 commented 1 week ago

Hi @Jenefer-Monroe

Please find the below screen shots. image

Records before running the flow

image

Records after running the flow

image

Jenefer-Monroe commented 1 week ago

Was "Test" the app you deleted? If so, change the view to Deleted Apps and you should see it. image

thotavinod590 commented 1 week ago

@Jenefer-Monroe We can see the deleted app under Deleted Apps. Is there any time limit for these deleted apps available under the Deleted Apps view? Like, after a few days, will this data be deleted automatically, or will it be permanent until we delete it from the Dataverse table?

Jenefer-Monroe commented 1 week ago

If you have Also Delete from CoE = yes then these records get deleted after ~2 months by that same flow. We leave them in there for that amount of time to allow time for any restores of the objects within the tenant to occur.

thotavinod590 commented 1 week ago

@Jenefer-Monroe We do not want to delete these records after 2 months. These records should be available under the delete app view. Where do we have to update the CoE = No setting? We can also have deleted data in the system for a long time.

Jenefer-Monroe commented 1 week ago

Setting the env var to No will actually mean we never delete these.

Here is the scenario that is supported by keeping these around:

And do note that we remove these deleted objects from all processes, apps, reports as needed so that they dont show up unless you explicitly look for them (as shown above).

However if you would like them removed immediately you certainly can. Lots of people extend the kit to meet their needs. If you would like to delete these more quickly than 2 months from the inventory you will need to write your own one-off flow to do that. Perhaps a daily flow that just queries for objects marked deleted and then removes them from inventory.

Jenefer-Monroe commented 1 week ago

Also note that the check deleted flow runs weekly as it’s long running so you will see objects marked deleted within a week of them being deleted from tenant

thotavinod590 commented 1 week ago

Hi @Jenefer-Monroe Currently, Last three years this flow (CLEANUP - Admin | Sync Template v4 (Check Deleted)) is not turned on. if we turn on and will this flow work and updated all deleted app/flows/environments.

Jenefer-Monroe commented 1 week ago

Correct. Please note that we recommend you use the setup wizard after every upgrade as it will ensure all the correct flows are turned on.

Use the setup wizard

Its highly recommended that you use the Setup Wizard to walk you through setup and upgrades. It will ensure all the new flows are turned on in the correct order, trigger things like population of the bookmarks screen and do other cleanup steps needed. You should do this both for upgrades and clean installs. To use it, first perform the import of the solution install or upgrade manually, then boot the app and walk through the screens. image image

Jenefer-Monroe commented 1 day ago

closing out as no further action for starter kit team

thotavinod590 commented 12 hours ago

@Jenefer-Monroe We have turned on the flow. CLEANUP - Admin | Sync Template v4 (Check Deleted) Yesterday, flow was run successfully, but active environments also moved to the deleted state. Can I know why those active environments moved to the deleted state. How can we move those to environment active state. 850 environments moved to deleted state

image

image