Documentation

Timeline entry icon

Scope: catalog Permissions to execute: for all

crm.timeline.icon.get

crm.timeline.icon.get(code: string)

Icon information

Parameters

Parameter Description Type
code Icon code

Method returns an array containing icon fields.

crm.timeline.icon.list

crm.timeline.icon.list()

List of available icons

No parameters

Method returns an array containing all available icons. Each array element contains icon fields.

crm.timeline.icon.add

crm.timeline.icon.add(code: string, fileContent: string)

Add an icon.

Parameters

Method Description Type
code Icon code
fileContent Icon file content, encoded in base64. File requirement: .png type, 24x24 pixel dimensions, transparent background.

Only CRM admin has access to execution of this method.

crm.timeline.icon.delete

crm.timeline.icon.delete(code: string)

Delete an icon.

Parameters

Method Description Type
code Icon code

When passing user icon code, it is deleted.

Only CRM admin has access to execution of this method.

Fields

Icon entry fields

Parameters

Method Description Type
code Icon code string
isSystem When icon is a standard icon, provided in the product, it will contain true; if icon is added by the user, it will contain false. bool
fileUri If an icon was added by the user, the field contains path to icon image file string


© «Bitrix24», 2001-2024