Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 292

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!

  • Verified answer
    v-yujincui-msft Profile Picture
    on at
    Re: Use Launch function to set a variable in another canvas app?

    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

  • karimabdelrazek Profile Picture
    292 on at
    Re: Use Launch function to set a variable in another canvas app?

    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?

  • EdViegas Profile Picture
    436 on at
    Re: Use Launch function to set a variable in another canvas app?

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard