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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamic Dataverse tabl...
Power Apps
Unanswered

Dynamic Dataverse table creation using Model Driven app

(1) ShareShare
ReportReport
Posted on by

Hi,

 

Can we create a dataverse table dynamically through Model driven app by collecting table name and other required values?

I have the same question (0)
  • ivan_apps Profile Picture
    2,189 Moderator on at

    Yes the XRM API should allow you to programmatically create dataverse  tables. But you have to know C# to do it:

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/create-update-entity-definitions-using-web-api

  • bscarlavai33 Profile Picture
    752 Super User 2026 Season 1 on at

    To add to what Ivan said, you would want to register a post synchronous plugin on your table that then uses the above code to create the tables dynamically. Curious what your use case is though since Power Platform already has great UIs to configure Dataverse tables, columns, forms, etc.

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/tutorial-write-plug-in

  • ivan_apps Profile Picture
    2,189 Moderator on at

    Yes you could do an asynchronous plugin or you can write a console app that connects to Dataverse using the XrmTooling connection. 
    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/xrm-tooling/use-connection-strings-xrm-tooling-connect

     

    I imagine the use case would be to create multiple tables/columns over several environment uniformly. But you can also achieve this via solution imports & pipelines without code. 

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @SriHarish Although this is technically possible, I would recommend that you don't deploy any code that does this in a non-development environment because the schema changes it would generate at runtime would be in an unmanaged state which is not recommended for non development environments 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard