Documentation

imopenlines.session.mode.unpinAll

Scope: catalog Permissions to execute: for all

Unpins all conversations from current agent. Returns array with unpinned session IDs.

Method call and response


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

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

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


© «Bitrix24», 2001-2024