Hi,
I’m trying to access the documents field in a database. The plan is to generate a summary of all the linked documents in the entity. However, when I try to access the Documents field I get an error saying: “Failed to execute Action “Script”: getEntityById: There is no relation for “My space/Database 1” database “documents/documents” field.” Below is the code I’m using to access the Documents field in the current entity. Any tips?
const fibery = context.getService('fibery');
for (const entity of args.currentEntities) {
const docEntity = await fibery.getEntityById(entity.type, entity.id, ['Documents']);
}