I want to trigger an automation in a collection field or embedded view in a displayed Page entity, but these entities are not related to the viewed entity. Can I still make these entities or the view somehow aware of the currently viewed Page entity, in order to click on their automation button to interact with this currently viewed Page?
There is unfortunately no concept of âviewer contextâ nor in fact any concept of âUIâ or Views at all, available to Automations.
Related: Can scripts be automatically triggered by events? - #5 by Matt_Blais
This is a good candidate for a feature request - something similar to args.currentUser
- maybe args.currentView
and args.currentEntity
.
I would personally find it quite valuable if such a feature applied to Rules as well as Buttons, since I often use Checkboxes instead of Buttons to trigger Automations.
Currently there is the âFibery Ghost â fake User that gets associated with system-triggered Rules; there could be an equivalent âGhostâ or âbackgroundâ View associated with a Ruleâs âtrigger contextâ when it is not triggered from a manual UI action, or there is no âentity contextâ.
Indeed. Automations are basically âbackendâ. They donât know (or care) what any given user was doing/looking at when they were triggered. In fact, there can be situations where no-one is actually using Fibery when they get triggered (e.g. scheduled automations, automations that trigger on a formula field which has been recalculated because the value of Today() has changedâŠ)
I donât think Fibery will reach the point where an automation can distinguish that a field change was triggered when a user dragânâdropped an entity between columns in a board view vs the user changing the value via updating a cell in table view.
Similarly, I donât think that Fibery will support automations that distinguish activity on an embedded view vs any other view.
Of course, never say never!
Curious, why do you use checkboxes instead of buttons?
Buttons cannot be âclickedâ by a script, but Checkbox fields can.