by Eric Rösch
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.
Reviews and ratings can be submitted in the app.