We are investigating automating the creation of our Dataverse tables using CrmServiceClient.
We are trying to temporarily remove references in our canvas apps to our Dataverse tables using RemoveAppComponentsRequest, which according to this site looks like it's possible:
"You can add or remove components in an app such as sitemap, entity, dashboard"
However, running our script, using the App Id obtained from our canvas app in Power Apps studio gives the error:
Unhandled Exception: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: appmodule With Id = <our App ID guid> Does Not Exist
If the App Id in Power Apps studio is the wrong one, then where do we find the correct guid?