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?

Report
All responses (
Answers (