cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
bu
Level: Powered On

Pass Parameter to Specific Form

I have embedded Org Browser into a Microsoft Dynamics form and I'm wondering if there is any way to search for a contact onLoad. So basically, I have a contact field on the form, so when the page loads I want the Org Browser to already display that contact info, rather than the user having to search for it.

 

I am brand new to PowerApps so I'm not sure how to pass values into an app, or further, how to pass a value to a specific form of the app. The app initially loads on the HomeScreen, but I need it to load the OrganizationScreen with a contact value already passed in.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Pass Parameter to Specific Form

Hi @bu,

 

Could you please share a bit more about your scenario?

Do you want to pass a Contact value into a specific form within your app?

 

If you want to pass parameter into an app, please check the following articles:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/embed-apps-dev#set-uri-parameters-for-y...

 

http://powerappspros.com/2017/03/powerapps-pro-tips-passing-parameters/

 

 

If you want to pass parameter to a specific form of your app, I afraid that there is no way to achieve your needs in PowerApps currently.

 

As an alternative solution, you could consider take a try to initialize a global variable (using Set function) to receive the passed parameter (Contact value) when your app is loading, and then this variable would be available throughout your app on all screens.

 

Set URI parameters for your app as following format:

https://web.powerapps.com/webplayer/iframeapp?source=iframe
&appId=/providers/Microsoft.PowerApps/apps/[AppID]&Param1=Value1

On your side, it should be:

https://web.powerapps.com/webplayer/iframeapp?source=iframe
&appId=/providers/Microsoft.PowerApps/apps/[AppID]&ContactParam=ContactValue

Note: The ContactParam reprsents the parameter name, the ContactValue represents the parameter value.

 

Within your app, set the OnStart or OnVisible property of the first screen (HomeScreen) to following formula (receive the passed parameter😞

Set(PassedContact,Param(ContactParam))

Then you could use the PassedContact variable within your specific form.

 

 

Best regards,

Kris

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.

View solution in original post

4 REPLIES 4
leyburn19
Level 10

Re: Pass Parameter to Specific Form

On startup you can set global variables about the user: 

 

Set(varUserName,User().Fullname; Set(varUserEmail,User().Email)

Community Support Team
Community Support Team

Re: Pass Parameter to Specific Form

Hi @bu,

 

Could you please share a bit more about your scenario?

Do you want to pass a Contact value into a specific form within your app?

 

If you want to pass parameter into an app, please check the following articles:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/embed-apps-dev#set-uri-parameters-for-y...

 

http://powerappspros.com/2017/03/powerapps-pro-tips-passing-parameters/

 

 

If you want to pass parameter to a specific form of your app, I afraid that there is no way to achieve your needs in PowerApps currently.

 

As an alternative solution, you could consider take a try to initialize a global variable (using Set function) to receive the passed parameter (Contact value) when your app is loading, and then this variable would be available throughout your app on all screens.

 

Set URI parameters for your app as following format:

https://web.powerapps.com/webplayer/iframeapp?source=iframe
&appId=/providers/Microsoft.PowerApps/apps/[AppID]&Param1=Value1

On your side, it should be:

https://web.powerapps.com/webplayer/iframeapp?source=iframe
&appId=/providers/Microsoft.PowerApps/apps/[AppID]&ContactParam=ContactValue

Note: The ContactParam reprsents the parameter name, the ContactValue represents the parameter value.

 

Within your app, set the OnStart or OnVisible property of the first screen (HomeScreen) to following formula (receive the passed parameter😞

Set(PassedContact,Param(ContactParam))

Then you could use the PassedContact variable within your specific form.

 

 

Best regards,

Kris

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.

View solution in original post

bu
Level: Powered On

Re: Pass Parameter to Specific Form

I was trying to run a searchUser with the parameter and it wasn't working, but setting the parameter equal to a global variable like you mentioned worked great. Thank you

Madi
Level: Powered On

Re: Pass Parameter to Specific Form

Hei 

Iam trying the same but not getting desired results . Here are screenshots . In url iam passing department as paramter 

 

https://web.powerapps.com/webplayer/iframeapp?source=iframe&appId=/providers/Microsoft.PowerApps/app...

 

then onStart of form becuse my app starts with power app form i added Set(Deparmtent;Param("Department"))

 

and then on fields "item" property on form "Deparmtent" . but when i run its not populating .

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 195 members 5,437 guests
Please welcome our newest community members: