web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Use Launch function to...
Power Apps
Answered

Use Launch function to set a variable in another canvas app?

(0) ShareShare
ReportReport
Posted on by 294

Hi everyone,

Is it possible to set a variable in another canvas app using the Launch function? I would like the user to select a button that will open up another canvas app with a popup already triggered. The popup is triggered by setting a variable to "true".

If this is not possible using the Launch function, any suggestions on how to do this?

Thanks!

Categories:
I have the same question (0)
  • EdViegas Profile Picture
    436 on at

    You need to implement Param function in the launched app. The process is quite simple. First you need to add a condition in the App OnStart property 

    If(
     Param("myvar") = "popup",
     Navigate(
     Screen1,
     ScreenTransition.Cover,
     {
     VarPopUp: true
     }
     )
    )

     Then, append param name and value to app's url like

    Launch("https://your_app_url?myvar=popup", {}, "New")

    Launch and Param functions in Power Apps - Power Apps | Microsoft Docs

  • karimabdelrazek Profile Picture
    294 on at

    Hi @EdViegas . Thank you for your reply. I am not able to add any "Navigate" commands to the OnStart property of the app. If I'm not mistaken, adding Navigate commands is no longer supported in the OnStart. Any ideas on how to overcome this?

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @karimabdelrazek ,

     

    Maybe you could try to create a new Screen and add a Timer Control to it, then select the Timer Control and apply the formula provided by @EdViegas .

    vyujincuimsft_0-1652775370759.png

     

     

    Best Regards,
    Charlie Choi

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard