GetLogDemo

by Eric Rösch

Version 1 (May 7, 2017)

Download (38 downloads)

A simple demo showing how to get and use the log of a flow inside that flow itself.

First, the log gets copied from Automate's content provider to the storage.

Next, Automate reads the file we just copied (Automate can't read it directly from the content provider).

Then it deletes the copied file as the log is now inside the "log" variable and (only in this demo) asks the user if it should be displayed as text or an array.

Finally, it removes the empty line at the bottom via regular expression and, depending on the user's choice, splits the log into an array or not and displays it.

5.0 average rating from 1 reviews

5 stars
1
4 stars
0
3 stars
0
2 stars
0
1 star
0
Warnings
0

Reviews and ratings can be submitted in the app.