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()); } );
© «Bitrix24», 2001-2024