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 / 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,187 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
    738 Super User 2025 Season 2 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,187 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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard