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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Passing Parameters to custom page using JS

(0) ShareShare
ReportReport
Posted on by 92

Hello,

I created a plugin and registered its step on a call from a custom action. I also assigned two variables to the custom action, one as input and the other as output.

I then created my plugin and passed the id from the plugin to js, onto the custom page. Yet, the id is returning null. so tried to pass the primary control id to the custom page, but the value is still returning null.

As you can see in the screenshot below, I am passing the primary control.

pastedimage1668067423412v1.png

As for the onStart in canvas, I am retrieving the variable and it is also returning null.

pastedimage1668067524468v2.png

Thank you!

I have the same question (0)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Passing Parameters to custom page using JS

    Hi MBaba,

    You are welcome.

  • MBaba Profile Picture
    92 on at
    RE: Passing Parameters to custom page using JS

    Hello Abdul Wahab,

    Thank you for making me aware of my error. I changed the param to recordId in the javascript and it worked fine.

    Thank you!

  • Verified answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Passing Parameters to custom page using JS

    Hi MBaba,

    You need to read the below links.

    1. navigateTo (Client API reference) in model-driven apps - Power Apps | Microsoft Learn
    2. navigateTo (Client API reference) in model-driven apps - Power Apps | Microsoft Learn

    pastedimage1668071957078v1.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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 147

#2
DAnny3211 Profile Picture

DAnny3211 134

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans