Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

Passing Parameters to custom page using JS

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!

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

    Hi MBaba,

    You are welcome.

  • MBaba Profile Picture
    MBaba 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
    Abdul Wahab 12,070 Moderator on at

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans