Notifications
Announcements
Hi,
Can we create a dataverse table dynamically through Model driven app by collecting table name and other required values?
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
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
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.
@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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268