web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Removing canvas app ta...
Power Apps
Unanswered

Removing canvas app table references using RemoveAppComponentsRequest

(0) ShareShare
ReportReport
Posted on by 42

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?

I have the same question (0)
  • Verified answer
    Prakash4691 Profile Picture
    1,332 on at

    @ArtieLeech ,

    The above request which works only for model driven app and not for canvas app.

     

    If it answers your question, kindly give kudo and accept it as solution.

     

     

    Regards,

    Prakash

  • ArtieLeech Profile Picture
    42 on at

    Thanks for your response @Prakash4691 

     

    If we can't use RemoveAppComponentsRequest on canvas apps, is there another way to temporarily remove a reference to a Dataverse table using CrmServiceClient?

     

    Our intention is to:

    • remove the references to the Dataverse tables from our canvas app
    • rebuild the Dataverse tables with the latest schema using CrmServiceClient methods
    • add the references to the Dataverse tables back into our canvas app
  • Prakash4691 Profile Picture
    1,332 on at

    @ArtieLeech ,

    It looks like currently app module API which supports only for model driven app. There are no API available for canvas app to perform such operation.

     

    You have to do it through UI editor. It you want to have latest schema of the table just refresh the data source.

     

    Regards,

    Prakash

  • ArtieLeech Profile Picture
    42 on at

    @Prakash4691, by using the API examples here, we've managed to automatically generate all our Dataverse tables, including relationships.   So now we can always regenerate our Dataverse from scratch, which has helped, for example, when junior team members accidentally changed various aspects.

     

    We've then added data connections to these Dataverse tables in our canvas apps.

     

    However now, if we update our Dataverse schema scripts and run them, we need to manually remove the data connections from our apps first, re-run our scripts to freshly build the Dataverse tables, then re-add the data connections manually again.

     

    Is there another automated approach that could be used to temporarily remove a data source from a canvas app, e.g. a Flow or something else?

  • Prakash4691 Profile Picture
    1,332 on at

    @ArtieLeech ,

    Yes, that will work only for dataverse tables. Currently there are no API's or messages available for canvas app. So automation is not possible.

     

    Regards,

    Prakash

  • Prakash4691 Profile Picture
    1,332 on at

    @ArtieLeech ,

    FYI, as per below link only messages/API's which are currently available for canvas apps.

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/reference/entities/canvasapp

     

  • ArtieLeech Profile Picture
    42 on at

    @Prakash4691 thanks for your help and for the link to the Canvas App message / API reference,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard