disk.attachedObject.get
disk.attachedObject.get
This method returns information about the attached file via user property and the attachment ID.
Examples
Response example:
result: { ID: "318", OBJECT_ID: "13215", //file ID from the Drive MODULE_ID: "blog", //the module containing user property ENTITY_TYPE: "blog_comment", //entity type ENTITY_ID: "157", //entity identifier with attachment CREATE_TIME: "2018-10-31T10:57:35+02:00", //time when created CREATED_BY: "1", //ID of the user who created the attachment DOWNLOAD_URL: "https://test.bitrix24.com/bitrix/tools/disk/uf.php?attachedId=318&auth%5Baplogin%5D=1&auth%5Bap%5D=******&action=download&ncc=1", NAME: "Test.docx", //file name SIZE: "3867" //file size in bytes }
Call example:
BX24.callMethod( "disk.attachedObject.get", { id: 318 }, function (result) { if (result.error()) console.error(result.error()); else console.dir(result.data()); } );
© «Bitrix Inc.»,
2001-2021,
«Bitrix Inc.», 2021
User Comments
User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.