I'm pretty new to PowerApps, but this is simply puzzling me.
I want to pass a URL parameter into a PowerApp to set the default value on a field in a new form (from a Power BI report - don't want to embed the app in the report page, a new page for the PowerApp works nicely and I can generate the URL with parameter dynamically from my power bi report)
But I can't seem to reference the "potential" parameter in Power Apps Studio, it just generates an error when I reference Param(myref) because it doesn't have a URL passing the parameter at that point - it doesn't recognise myref as a valid name. I wondered if you need to declare it ahead of time, but can't seem to see how from googling today. The guides all seem to gloss over how they successfully reference a parameter name that Studio doesn't recognise, so I guess I'm missing something obvious here.
Help is appreciated! 🙂
Solved! Go to Solution.
Hi @WarrenOwen
You have to access the parameter like next with the quotes
Param("myref")
And you might want to check if it's empty or not if there's logic build around the parameter:
If(
Not(IsBlank(Param("myref"))),
...,
...
)
Hope that helps!
Hi @WarrenOwen
You have to access the parameter like next with the quotes
Param("myref")
And you might want to check if it's empty or not if there's logic build around the parameter:
If(
Not(IsBlank(Param("myref"))),
...,
...
)
Hope that helps!
Doh! Had to be something obvious 🙂 Thanks. that has fixed it.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
191 | |
54 | |
42 | |
38 | |
33 |
User | Count |
---|---|
258 | |
78 | |
74 | |
71 | |
68 |