lists.element.get.file.url
lists.element.get.file.url ( params )
This method returns path to a file. If successful, returns an array with a list of url for the required File-type or a File (Disk)-type field.
Parameters
Method | Description | Available from version |
---|---|---|
params | All fields are required.
| |
SOCNET_GROUP_ID | group ID (required, if list is created for group); |
Example
var params = { 'IBLOCK_TYPE_ID': 'lists', 'IBLOCK_ID': '41', 'ELEMENT_ID': '683', 'FIELD_ID': '120' }; BX.rest.callMethod( 'lists.element.get.file.url', params, function(result) { if(result.error()) alert("Error: " + result.error()); else console.log(result.data()); } )
© «Bitrix24», 2001-2024