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

Trigger a Flow when offline

(0) ShareShare
ReportReport
Posted on by

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
    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

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 > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard