Attached File: Overview of Methods

The attached file links a document from Drive to other Bitrix24 objects. This connection allows access to the file from various modules within the system.

Quick Navigation: All Methods

Features of Working with Attached Files

The method disk.attachedObject.get operates on the record of attaching a file to a specific object, rather than the file itself. Imagine you have a file report.docx in Drive. When you attach it to a task and a comment in the feed, two different attachment records are created with different identifiers, but both reference the same file.

To obtain the connection identifier, you need to use methods that return attached files within specific objects. For example, when working with tasks, the connection identifier can be retrieved through the method tasks.task.get.

Connection to Other Objects

CRM. Files can be attached to deals and estimates. The group of methods crm.activity.* is responsible for working with deals, while crm.quote.* handles estimates.

Workflows. You can initiate workflows for documents in the shared drive. Workflow management is performed using the methods bizproc.workflow.*.

Tasks. Files are attached to the task description. All Participants in the task can view, edit, and download the attached files. You should work with tasks through the methods in the group tasks.task.*.

Calendar. Files are added to events and become accessible to all participants. You can retrieve information about an event using the methods calendar.event.*.

News Feed. Files are attached to messages and comments. The method log.blogpost.get returns a list of messages, while the method log.blogcomment.user.get returns a list of comments.

E-mail. Attachments from e-mails are saved to Drive. You can only work with e-mails through the Bitrix24 interface. If an e-mail is saved in CRM, you can interact with the attachments using the methods crm.activity.* through the FILES field.

Universal Lists. List items are linked to Drive through the field of type File (Drive). You can retrieve the parameters of an item using the method lists.element.get.

Chats. Users can exchange documents, photos, videos, and audio files. Files can be viewed and downloaded, while documents can be edited without downloading. Attached files are accessible to all chat participants. The method im.dialog.messages.get returns a list of the latest messages.

Scope: disk

Who can execute the method: a user with "Read" access permission for the required file

Method

Description

disk.attachedObject.get

Returns information about the attached file