Hi All,
We have a scenario where a user should be able to click a button from Canvas App gallery and that should launch a Model-Driven App form with pre-populated information(Information from the gallery record).
We tried using Power Automate to create a record in Dataverse and then used the Launch function in Power App to open the created record. Since we are parsing the details from the gallery and then using Power Automate to create the record, it takes about 10 seconds to create the record and then send the URL back to Power App and launch.
We are looking for this to happen in Real-time and since PowerAutomate will take time to create and send the details back, I don't think we can use Power Automate for real-time functionality.
Is there a way we can build this functionality in real-time? For Example - The user clicks the button from the Canvas App and it will launch the Model-Driven app form with Pre-populated information?(It is not necessary that we should create a record in dataverse before launching. But, we should be able to pass the parameters of the record from canvas app to Model-Driven app form).
Any thoughts on how we can make it work real-time?
Thanks in Advance!
Hi @ajayravi-94
There is no direct way to pre-populate a record. We have to write a Javascript function to get the data from the query string.
Are you calling Power Automate from PowerApps and takes 10 seconds to create a record?
We have done the same thing to create a record it takes only a few seconds (Max 4 seconds) which is expected.
Hi @StalinPonnusamy ,
Thanks for your response!
If we write a write a JavaScript function in Model-Driven App, will we be able to pass the parameters from Canvas app to Model Driven App form on launch?
We are setting multiple fields in the form - Text, lookup, Date, owner field etc. In Power Automate, we are using dataverse connectors and a switch statement to perform multiple operations. Due to multiple connectors in power automate, it takes anywhere from 7-10 seconds on an average to create a record and send the URL back to Power App.
Hi @ajayravi-94
Looks like Microsoft stopped supporting this. I have down lots of projects by sending custom param as query parameter but not accepting now like
https://orgname.crm.dynamics.com/main.aspx?appid=a66c4eb8-3f00-ec11-94ef-0022480a73e5&pagetype=entityrecord&etn=account&name=test&number=5000
So Power automate is the only option to go.
Did you ever figure this out?
User | Count |
---|---|
252 | |
104 | |
94 | |
50 | |
39 |