web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / [@ModelDrivenFormInteg...
Power Apps
Unanswered

[@ModelDrivenFormIntegration].Item seems to return empty at OnStart

(0) ShareShare
ReportReport
Posted on by 108

Hello,

We have an existing Power Apps canvas app and are looking to integrate it with a Model Driven app.

We discovered that the "ModelDrivenFormIntegration" appears to serve as a bridge between the canvas app and the model-driven app. Initially, we assumed that simply passing the record ID (GUID) of a specific record from the Account table would suffice. However, this method doesn't seem to work.

We placed the "ModelDrivenFormIntegration" in the "OnStart" property of  App, intending to display the GUID in a label. Unfortunately, the label appears empty.

Could anyone provide insights or solutions to this issue?

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at

    Hello, @bs-dev001 

     

    It would be more like

    ModelDrivenFormIntegration.Item
    
    or 
    ModelDrivenFormIntegration.Item.Account or whatever Table it is
    
    or
    
    GUID(First(ModelDrivenFormIntegration.Data).ItemId)


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • kojima Profile Picture
    108 on at

    I have tried that already. Neither one works.  At "OnStart", a bridge between the canvas app and the model driven app may not be initialized?? @FLMike 

  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at

    Hi @bs-dev001 

     

    If you have embedded the app on a screen, lets pretend a Contact screen, it is absolutely going to be initialized before because the context is already there(since its an entity/table screen).

     

    I'd be more apt to believe that its not embedded correctly or that the Integration isn't actually there. Can you show a picture of the Canvas App in the Editor and show that the integration object is there please.

     

    It will be there, if its setup correctly. I would even try something simple. Put a label on the screen, set the text property to the item guid if its blank, then its not embedded correctly.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • kojima Profile Picture
    108 on at

    The integration is there for sure.  I can see `ModelDrivenFormIntegration` in a tree view of the Editor screen and both DataSource and OnDataRefresh property points to the correct table.  

     

    What I have just tried is that I cleared out OnStart property and then I created a button and on its OnSelect property, I put `Set(recordGUID, GUID(First(ModelDrivenFormIntegration.Data).ItemId))`.
    When I press the button, I can see GUID as text in a label(of course Text property in the label is `recordGUID` variable).  This makes me believe the context is not passed to the canvas app properly on `OnStart`
    @FLMike 

  • kojima Profile Picture
    108 on at

    I found this post on the community.  Just FYI.  Someone from Microsoft said "ModelDrivenFormIntegration object is loaded asynchronously."

    Solved: How to Set ModelDrivenFormIntegration control's It... - Power Platform Community (microsoft.com)

  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at

    hi @bs-dev001 

     

    Actually, the Context is there, its a matter of timing on when its populated yes, but I mistakenly thought you meant it just wasn't ever there, that's why I asked you to put the label on.

     

    Glad you have it sorted!

  • Cedricbob1 Profile Picture
    2 on at

    I had the same problem.

    I found that using the "OnDataRefresh" event from the "ModelDrivenFormIntegration" object fired the event at the right time

    Cedricbob1_0-1717615579910.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard