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 / PCF to Custom Page Par...
Power Apps
Suggested Answer

PCF to Custom Page Parameter Passing Issue in Model-Driven App

(0) ShareShare
ReportReport
Posted on by

I am trying to pass parameters from a PCF control to a Custom Page (Canvas App) in a Model-Driven App using navigateTo().

From the PCF side, I can see the values are correctly populated in the browser debugger.

Example:

const pageInput: CustomPageInput = {
    pageType: "custom",
    name: "bb_d365contactscreen_aa926",
    data: {
        id,
        contactId,
        caseId,
        typeofpanel
    }
};

navigation.navigateTo(pageInput, navigationOptions);

In debugger I can see:

id = "ebb0b2c7-aa43-f111-bec6-000d3a336852"
contactId = "1de290e3-a943-f111-bec6-000d3a33623f"
caseId = "e84939e3-3ad8-4536-bc50-c2a1d2655a54"
typeofpanel = "edit"

But inside the Custom Page, when using:

Param("id")
Param("contactId")
Param("caseId")
Param("typeofpanel")

I am getting blank/null values.

I also tried using Set() in App OnStart and Screen OnVisible but still facing the same issue.

Has anyone faced this issue while passing parameters from PCF to Custom Page in Model-Driven Apps?

Is there any additional configuration needed for Custom Pages or a different approach recommended for parameter passing?

Screenshot (180).png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
     
    We can't see the screenshot as it's still scanning, you can upload using the image updated in the text area, which will appear immediately 
     
    You could try 
    const pageInput = {
       pageType: "custom",
       name: "bb_d365contactscreen_aa926",
       entityName: "contact",
       recordId: contactId
    };
     

    Then in the Custom Page:

    Param("recordId")
     
     
    Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard