Documentation

disk.storage.get

disk.storage.get

Returns storage by ID.

Response example:

"result": {
    "ID": "2", //identifier
    "NAME": "Marketing and Advertisement", //name
    "CODE": null, //symbol code
    "MODULE_ID": "disk",
    "ENTITY_TYPE": "group", //entity type (see [link=1332048]disk.storage.gettypes[/link])
    "ENTITY_ID": "1", //entity ID
    "ROOT_OBJECT_ID": "2" //root folder ID
}


Parameters

Parameter Description
id Storage ID.

Example

        BX24.callMethod(
		"disk.storage.get",
		{id: 2},
		function (result)
		{
			if (result.error())
				console.error(result.error());
			else
				console.dir(result.data());
		}
);



© «Bitrix24», 2001-2024