Hi,
Can we create a dataverse table dynamically through Model driven app by collecting table name and other required values?
@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
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.
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 the XRM API should allow you to programmatically create dataverse tables. But you have to know C# to do it: