Documentation

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

ParameterDescriptionVersion
$urlInternal document URL.
$checkAccessY\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-2022
Up