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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Variables from Copilot...
Copilot Studio
Suggested Answer

Variables from Copilot Studio to Power Apps

(2) ShareShare
ReportReport
Posted on by 4
I have a Copilot studio bot that I need to allow users to choose to navigate to a Power Apps supporting application. I need to pass variables to the Power App so that the data is pre-filtered. I know that I can pass variables to Power Automate, which is great, but I cannot then pass from Power Automate to Power Apps because I cannot use the "respond to Power Apps" node since the app did not trigger the flow to begin with. Any guidance would be appreciated!
Categories:
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    Pls check below steps:
     
    • In Copilot Studio, when the user interacts with the bot and selects an option, you can trigger a Power Automate flow to process the data and generate the necessary filtering information (e.g., IDs, filters, etc.).
    • Instead of trying to pass the data directly back to Power Apps, generate a URL that includes the variables as query string parameters.
      • https://apps.powerapps.com/play/e1234567-89ab-4cde-f012-3456789abcdef?FilterID=123&Status=Active
         
    • In Power Automate, after processing the variables or data from Copilot, construct the Power Apps URL with the necessary parameters:
      • https://apps.powerapps.com/play/{AppID}?FilterID={varID}&Status={varStatus}
         
    • Once the URL is constructed, have the Power Automate flow return the URL back to the Copilot bot, where users can click on it to navigate to the Power Apps app with the pre-filtered data.
    • In Power Apps, you can use the Param() function to capture the query string parameters passed in the URL.
      • // Capture the parameters passed in the URL
        Set(FilterID, Param("FilterID"));
        Set(Status, Param("Status"));
        // Use these parameters to filter your data
        Filter(DataSource, ID = FilterID && StatusColumn = Status)
    • When users click on the URL returned by the Copilot bot, they will be redirected to the Power Apps app, and the app will automatically pre-filter the data based on the parameters in the URL.
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,590 Super User 2025 Season 2 on at
     
    You can still use Power Automate flow to achieve this.
    1. User interacts with Copilot, and based on their inputs, Power Automate performs the necessary actions.
    2. At the end of the Power Automate flow, construct the Power Apps URL with pre-filtering parameters.
    3. Return this URL to Copilot or navigate directly using a link so that when the user clicks the link, the filtered Power Apps page opens.
    More details:
    • Use Power Automate to Call Power Apps Directly:
      After performing your logic inside Power Automate, you can append the parameters to the Power Apps URL. Power Apps allows passing parameters via the URL, which can then be read inside the app to pre-filter the data.

      https://apps.powerapps.com/play/{AppID}?param1=value1&param2=value2
    • Extract Parameters Inside Power Apps:
      Once the Power Apps application is launched with the parameters in the URL, use Power Apps functions like Param() to read the parameters. For example: Param("param1")

    • Flow Execution:
      Inside the Copilot bot, you can pass the parameters from Power Automate to Power Apps by constructing the URL with these parameters and triggering it as part of the response to the user.

     
    Thanks.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 197 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard