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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Passing context to emb...
Power Apps
Unanswered

Passing context to embedded Custom Page

(0) ShareShare
ReportReport
Posted on by 29

Hi,

 

I know older Canvas Apps would use ModelDrivenFormIntegration object to handle getting the source record of the model-driven form.

 

Is this still the case with Custom Pages?  I am trying in the Custom Page to get these values via Param("recordId") and Param("entityName"), but both return blank when loading custom page embedded in the model-driven form.

 

Is this possible?  Do I have to go back to traditional canvas app using ModelDrivenFormIntegration?

 

I would prefer to use Custom Page if at all possible, but need to figure out how to obtain the source record.

 

Thanks!

 

Embedded Custom Page isn't receiving recordId and entityName from the host model-driven form:

image.png

 

I have the same question (1)
  • v-xiaochen-msft Profile Picture
    on at
  • taylorgmojo Profile Picture
    29 on at

    Hi Wearsky, thanks!

     

    I am just trying to load an embedded Custom Page when a main form opens - not open it as a modal or something via javascript after button press in main form.

     

    Can javascript be used to load a Custom Page like in my screenshot?  Or does it require ModelDrivenFormIntegration?  Is there another solution?

     

    Thanks!

  • v-xiaochen-msft Profile Picture
    on at

    Hi @taylorgmojo ,

     

    At my knowledge, passing context variables to custom page requires calling the Xrm script.

    So, if you want to show the 'canvas' in form, I think embedded canvas (ModelDrivenFormIntegration) is more suitable for you.

     

    Best Regards,

    Wearsky

  • Verified answer
    taylorgmojo Profile Picture
    29 on at

    Understood.  I just confirmed that if it is embedded you have to have ModelDrivenFormIntegration.  Luckily if you just re-add the Custom Page to the form via Classic mode, you can retroactively add ModelDrivenFormIntegration to a Custom Page's controls so it is usable.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard