microsoft / coe-starter-kit

Other
743 stars 219 forks source link

[CoE Starter Kit - BUG] No way to delete SharePointFormApps after list deleted #6493

Open Service-WebDevPowerP opened 1 year ago

Service-WebDevPowerP commented 1 year ago

Does this bug already exist in our backlog?

Describe the issue

In the Power Platform Admin View we have a number of SharePointFormApps listed Capture1

but when I check the SharePoint site that some of these refer to has been deleted long ago, how do i stop these appearing in the listing. I have tried turning inventory me on and also a full sync but they will not disappear

Expected Behavior

When the SharePoint site is deleted the SharePointFormApps associated with that site are deleted from the COE inventory

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.11

What app or flow are you having the issue with?

Power Platform Admin View

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

Customise a form in SharePoint using Power Apps Delete the site

Anything else?

No response

Jenefer-Monroe commented 1 year ago

Do the apps themselves still exist? If you open the record there and click App Details does it lead you to the app? image

Jenefer-Monroe commented 1 year ago

Hello, images do not come through if you respond in email, you need to log in to GitHub to share them.

Service-WebDevPowerP commented 1 year ago

Image

Sorry - image is attached here

Jenefer-Monroe commented 1 year ago

Oh you're right we didnt expose that App Details buttons for SharePointFormApps. I fixed that up locally via https://github.com/microsoft/coe-starter-kit/issues/6530 so thats for posting this.

Jenefer-Monroe commented 1 year ago

In the meantime you can check to see if the app still exists by going to the products admin center. https://admin.powerplatform.microsoft.com/environments > pick the environment shown in your screenshot (Personal Productivity) > Resourses > Power Apps image

Search for the name (yours is Gifts and Hospitality ...) See if it shows up. Here is mine, note it will show as Canvas here not SP Form App image

Service-WebDevPowerP commented 1 year ago

I tried this but the delete option is greyed out

image

Jenefer-Monroe commented 1 year ago

OK you've confirmed the app is still there so thats great to know. Now how to get rid of it?

Product issue: List deletion does not also auto delete the app for SharePoint Form App. And all instructions I see for how to delete it later require the list to still be there.

So you've found a great whole in the admin story here, thank you! I would have to investigate how to delete these and then see if the kit could help. I suggest you also contact product support to see what advice they give you for these. If we get that answer then implementing a fix woudl be more likely to occur soon.

Jenefer-Monroe commented 1 year ago

I tried to do it with our built in programatic tools and they are blocked

Image

santiareh commented 1 year ago

Experiencing the same issue. Following this thread.

Any idea if these types of apps will also show in the Orphan notifications? Wondering that if they can't be deleted then would they keep prompting managers to make a decision on them?

Jenefer-Monroe commented 1 year ago

I cannot find a way to delete these, might have to just list as a product gap. To my understanding we do already filter these out of the governance processes but I can also validate that as part of the Oct-investigation of this issue.

santiareh commented 1 year ago

Fantastic thank you!

Jenefer-Monroe commented 1 year ago

OK I've confirmed that we already filter these out of our governance flows (compliance, inactivity, orphans). So we'll hold this as a blocked bug to hopefully repair when we get a mechanism from the product.

robertobudelo-armacell commented 1 year ago

I had similar issues with deleting SPO Apps of lists that don't exist anymore. I figured out that you need to have Owner Rights on the related SPO Site. If you add your Power Platform Admin to the SPO site, you can run the Remove-App PowerShell Script and the App is being removed.

It's a permission issue, not a product issue I think.

I haven't tested it for Deleted SPO Sites, though. Probably (if possible) the site needs to be recoved, the Admin Account added as Owner and then it could be potentially deleted.

This also gives issues for the Archive flows, as the Power Platform Admin Account is unable to delete these Apps when it doesn't have the SPO Site permissions.