Documentation

imopenlines.session.mode.pinAll

Scope: catalog Permissions to execute: for all

Methods pins conversations for the current agent. Returns array with pinned session IDs.

Method call and response


JavaScript for Bitrix24 On-premise
BX.rest.callMethod('imopenlines.session.mode.setPinAll', {})
	.then(result => console.log(result.data()))
	.catch(result => console.warn(result.error().ex))
;

JavaScript for Bitrix24 Cloud
BX24.callMethod(
	'imopenlines.session.mode.pinAll',
	{},
	function(result)
	{
		if(result.error())
		{
			console.warn(result.error().ex);
			return false;
		}
		console.log(result.data());
	}
);


Response example:
{
	"result":[
		1652,
		1653
	]
}


© «Bitrix24», 2001-2024