Use case:
Invoices come in via email.
Within the Email/Message database there is a button “Create invoice”, which prompts the user for some input (invoice date, number, amount, and so on) and then creates an entity in the Finance/Invoice database.
From my understanding of the backend, there is a separate storage for files, and each database utilizing files does so by adding an “entity collection” field, which basically references to files via file’s ID/secret.
Now as we can’t leave the server environment in automations, I guess what should be possible is to:
- add an entity to the collection field (files)
→ with the same values for ID, Secret, name, and content-type of an already existing file.
This would basically mean the file would show in multiple entities, but if deleted in ANY place, it will be deleted everywhere.
Maybe executeSingleCommand(command: FiberyCommand)
might be needed for specific commands, but it should be possible from within Fibery automations as there is no need to leave the server environment, no?