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 / Trigger a Flow when of...
Power Apps
Answered

Trigger a Flow when offline

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I am trying to create the offline app. And from that I want to trigger a flow which sends email when specific conditions are met.

My question is -Is it possible to run a flow in offline mode in powerapps?

I guess it shouldn't work in offline mode but just to make sure. 

Now, If it doesn't work while offline mode how can I run/trigger to sends email when specific conditions are met?

How can I achieve that?

I have rough idea that I need to use collection.

Any help is appreciated.

 

Categories:
I have the same question (0)
  • TiagoFreire Profile Picture
    313 on at

    Flow, now called Power Automate, runs on the server. It is impossible to send commands to the server without a connection. 

    What you can do though, is to use SaveData() and LoadData() to store information offline, and use it when internet is restored. 

     

    You can for example, Collect() the data you want to send by email and SaveData() this Collection when offline. If you don't SaveData(), you will lose the data if the app closes. When you get online, you can LoadData() to restore the Collection with the data you want to send, and then submit it to Power Automate (née Flow).

    There is a Connection.Connected property that you can use to implement the logic you need to submit when online. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @TiagoFreire ,

    thanks for your response.

    I have done that. But now, how send data into RUN() from collection? Also, I want to trigger it for specific condition like if my temperature>38.

     

  • Verified answer
    TiagoFreire Profile Picture
    313 on at

    There are many ways to do it. 

     

    If your offline data has multiple records, the simplest design would be to have a gallery showing all the 'Pending' items which were collected, with a 'Submit' button for each to be sent manually. less code, but more effort, as it requires individual resubmissions. 

     

    To submit automatically, you will get in the wonderful world of Timers. They are a bit wonky to design and debug, you should read the documentation carefully, and will have to Publish the app several times to test them, as they do not behave the same inside the Studio. 

     

    But in a nutshell, you can run a sequence of commands after a timer expires or when it starts, and you can let the timer loop infinitely. 

     

    With that, you can: 

     

    If(

        Connection.Connected,

            ForAll(mydata,
               If(mydata.temperature > 38,

                    //do something for this row

                );

            );

        );

    );

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard