Check if a record of an object has attachments in the new "uploaded file" attachments object
Hi Community,
How can I setup a filter (or have charts) to count the number of attachments (or if there are any attachments) in a record of an object?
Before freedom it was very straight forward, now with freedom and the new "uploaded file" attachments object I was not able to setup the connection.
Thanks,
Luis
Like
Hello,
Thank you for your question!
When a new attachment storage is created according to The File Management API:
https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/category/api-for-file-management
The file storage will be available in the list of objects the Freedom UI Attachments component works with.
Later, you can build a dashboard based on this object.
I agree with Luis, handling this part is not as straight forward in Freedom UI.
Viktoriia Hrynchuk,
Thanks for the reply, but I still don't get it
Can you please explain in concrete how you would build a dynamic folder
that shows for example all opportunities that have attachments?
I can't manage to do it
Cheers,
Luis
Luis Tinoco Azevedo,
I don't think it's possible since SysFile doesn't have a direct relationship/lookup to the entity, it only stores the record Id so it won't appear in related objects.
Only way I can see to make it work is to create a database view to expose the SysFile records with a lookup to the entity.
Ryan