Hi there. I’m trying to generate avatars for my TODO items in fibery using an image generator AI, but I can’t seem to access the Avatar field in an automation script.
When I console.log(entity['Avatar']);
in the script, it prints undefined
even though that specific entity has an avatar (that I uploaded manually). If I try to fetch the field via the API with const entityWithExtraFields = await fibery.getEntityById(entity.type, entity.id, ['Avatar']);
, then triggering the automation displays a “script failed” popup.
Printing out all the keys with console.log(Object.keys(entity));
shows a list of keys without 'Avatar'
.
Is this not supported for now? Doesn’t seem like a stretch to support it since a 'Files'
field can be manipulated in a script.