cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sukie
Helper I
Helper I

First(ModelDrivenFormIntegration.Data).field not work in embedded canvas app which is showing "getting your data..."

Hi,

I want to use a embedded canvas app in model driven app, and created the canvas app according to the MS DOC  , But the canvas app always shows "getting your data".

I googled a lot of solutions that says I should add a timer to get the recorder displayed in the model-driven app's Main Form, but the formula they used

 

First(ModelDrivenFormIntegration.Data).fieldname

 

does not work in my environment. It says can not recognize the identifier fieldname that in my datasource.

The formula

 

ModelDrivenFormIntegration.Item.fieldname

 

does not show error, but display nothing.

 

The canvas app's form is created automatically when I click the customize button in the Field Properties dialog of classic form editor, and the formula of ModelDrivenFormIntegration.datasource is automatically set to [@entityname]. Anything seams likely alright but it does not work...

 

I am going crazy, why I did everything in MS doc but it does not work...  😞

 

Any answer or web resources are appreciated !!

 

- sukie

3 REPLIES 3
sukie
Helper I
Helper I

All of your embedded canvas apps work fine ? 😭

Hi @sukie ,

 

The getting your data message is coming from an EditForm with no item to display. 

 

On your end, if you would like to use an Edit form to display the same record as the selected item in model-driven apps, you will need to set Item of the edit form to:

LookUp(Table, 'GUID field of this table' = GUID(First(ModelDrivenFormIntegration.Data).ItemId))

 

then in this edit form you will be able to edit fields and select the field you want.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni 

 

Thank you very much for you reply.

 

I tried the formula you gave me, but it still says the ItemId does not exist.

2.jpg

 

Do you know how to print all of the fields of the record that the formula First(ModelDrivenFormIntegration.Data) returns?

I think the ModelDrivenFormIntegration is weird because I input [.] follow this variable and it shows nothing.

 

The edit form is automatically generated when I click customize button and the datasource of ModelDrivenFormIntegration is set to [@Father] which is the table name.

3.jpg

 

Is that possible because I am using developer environment?

 

Best Regards

 

- sukie

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (5,184)