cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

Pass Variable to Anothe App Using Launch()

I'm trying to pass a variable from app1 to app2. In both apps the variable is the same: Variable.ID. The app should open on the ResourceScreen in App2. What am I doing wrong?

 

The below is the OnSelect for an icon:

Launch( "/providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxx-9999-9999-ljdflkjsdflkjlj",
{ Navigate: "ResourceScreen" , Variable.ID: "varRecord.ID" }
)

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @TesDA ,

Based on the formula that you mentioned, I think there is something wrong with the Variable.ID variable name and the value you assigned to the variable name. Please consider remove the dot (.) inside the variable name. Please modify your formula as below:

Launch(
       "/providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxx-9999-9999-ljdflkjsdflkjlj",
       {VariableID: varRecord.ID},
       LaunchTarget.New
)

Note: I assume that the varRecord is a Record value in your source app (App1), and you want to pass the ID column value under the varRecord to your App 2. It is not necessary to pass the Navigate variable from your App 1 to your App 2.

 

Within your App2, set the OnStart property of App to following:

Set(ItemID, Param("VariableID"));
If(
    !IsBlank(ItemID),
    Navigate(ResourceScreen)
)

then within the ResourceScreen, you could reference the passed VariableID value through the ItemID variable directly.

 

Please try above solution, check if the issue is solved.

 

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.

View solution in original post

2 REPLIES 2
Super User III
Super User III

Hi @TesDA ,

 

try this:

Launch( "/providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxx-9999-9999-ljdflkjsdflkjlj&VariableID="&varRecord.ID)

on the app read the values as 

Param( VariableID)

 
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.
Community Support
Community Support

Hi @TesDA ,

Based on the formula that you mentioned, I think there is something wrong with the Variable.ID variable name and the value you assigned to the variable name. Please consider remove the dot (.) inside the variable name. Please modify your formula as below:

Launch(
       "/providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxx-9999-9999-ljdflkjsdflkjlj",
       {VariableID: varRecord.ID},
       LaunchTarget.New
)

Note: I assume that the varRecord is a Record value in your source app (App1), and you want to pass the ID column value under the varRecord to your App 2. It is not necessary to pass the Navigate variable from your App 1 to your App 2.

 

Within your App2, set the OnStart property of App to following:

Set(ItemID, Param("VariableID"));
If(
    !IsBlank(ItemID),
    Navigate(ResourceScreen)
)

then within the ResourceScreen, you could reference the passed VariableID value through the ItemID variable directly.

 

Please try above solution, check if the issue is solved.

 

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.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (15,220)