Hi Power Apps Community,
My issue is that I could not get the value of Work Order Id or name of WorkOrder Entity entity in my canvas app.
I created a New tab in WorkOrder View Form and embedded a new canvas app in it. I used this tutorial https://aaronkgumbs.com/2021/07/24/how-to-enable-modeldrivenformintegration-for-existing-canvas-apps/.
After using above url, We can get ModelDrivenFormIntegration Entity in canvas app.
I am using a PCF component in canvas app and I have to send WorkOrder ID in PCF component property like this.

According to this MS Documentation https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/embedded-canvas-app-add-classic-designer We can get any record of the table using ModelDrivenFormIntegration.Item.accountnumber. In my case I have to use msdynworkorderid. But I am not able to get the correct record of data.every time it is giving null value.
After doing some research, it seams as the ModelDrivenFormIntegration control has not been initialised yet when app loads.
So i check this blog which shows 2 possible solutions https://carinaclaesson.com/2020/05/30/exploring-the-modeldrivenformintegration-control-in-embedded-canvas-apps/
Add a timer or set the formula on the RefreshData property of the ModelDrivenFormIntegration control.
Both solutions doesn't work and Used formulas are also giving Errors.
Looking forward to your solution / advice.
Many thanks,
Dhruvil