getImAttach
\CIMMessageParamAttach public static \Bitrix\Main\UrlPreview\UrlPreview::getImAttach( string $url, boolean $checkAccess = true );
Static method returns attachment to messenger message with requested entity content.
Parameters
Parameter | Description | Version |
---|---|---|
$url | Internal document URL. | |
$checkAccess | Y\N - check for available access permissions to an entity for current user. |
Example
$attach = UrlPreview\UrlPreview::getImAttach('https://bitrix.com/company/personal/user/580/tasks/task/view/92846/', true);
© «Bitrix24», 2001-2024
Up