Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

How to pass run time Parameter in PCF control in Canvas ?



My requirement is to pass Parameter to PCF control in canvas app after Canvas Screen Loaded but I have added the PCF control this is rendering before the DOM loaded in Canvas app screen.

Can you tell me how can we do this?




Community Support
Community Support

Hi @rrizwann ,

Do you want to pass a Parameter to PCF control within your canvas app?


Based on the needs that you mentioned, I think the OnStart property of App and a available could achieve your needs. You could consider save your parameter value into a variable within the OnStart property of App, then you could reference the variable value within your PCF control.

Set the OnStart property of App to following:

Set(ParameterValue, "xxxxx Specific Value xxxx")

The OnStart property of App would be fired when you run your app (before the DOM is fully rendered within your app screen). You could reference the variable within your PCF control directly, then your PCF control would be rendered before the DOM is fully rendered in your canvas app screen.


If you want to pass a parameter value to your canvas app through the App URL Link, you could append a parameter value to the App URL link, the sample App URL Link along with parameter as below:

then you could use the Param function to retrieve the passed Param1 value. Set the OnStart property of App to following:

Set(RetrievedValue, Param("Param1"))

then you could use the RetrievedValue variable in your PCF control. So when you access your app through the App Url Link (as above), the parameter value would be passed to your PCF control.


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (3,056)