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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,724)