share variables between flows?

165 views
Skip to first unread message

F

unread,
Feb 24, 2024, 6:05:18 PM2/24/24
to Automate for Android
Good evening. how to exchange variables between flows? I read that there are no global variables and that the only solution is to use files (text for example).
Do you think the use of global variables will appear in automate one day perhaps?
this would be significantly simpler than using files.

Henrik "The Developer" Lindqvist

unread,
Feb 24, 2024, 6:54:07 PM2/24/24
to Automate for Android
  1. Use separate Flow beginning, possibly hidden, that accepts a "payload" from another flow using the Flow start block. Then use the Variables give and take, or Atomic block, to access the values by the different fibers within the flow.
  2. Use Broadcast send and receive blocks form different flows.
  3. Use a database.
  4. Use a JSON file.

Peter

unread,
Jul 17, 2025, 4:34:31 PMJul 17
to Automate for Android
Seems there is a bug in version 1.47.2 because it is not possible to enter numbers or a slash in a Variables take block in the field Output variables (Giver fiber URI).

Henrik "The Developer" Lindqvist

unread,
Jul 18, 2025, 7:38:06 AMJul 18
to Automate for Android
That's never been possible, the output fields only accept variable names, not expressions.
Reply all
Reply to author
Forward
0 new messages