cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bu
Regular Visitor

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
v-xida-msft
Community Support
Community Support

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
Memorable Member
Memorable Member

On startup you can set global variables about the user: 

 

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

v-xida-msft
Community Support
Community Support

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
Regular Visitor

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

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,183)