Adds a record to the Activity Stream on behalf of the current user.

Function parameters

This parameter is supported. However, it is more convenient to use DEST.
Parameter Description
USER_ID ID of the record author (optional, by default - current user is specified, other value is accessible only to the administrator of Bitrix24 On-Premise edition).
POST_MESSAGE Message text
POST_TITLE Message title (optional)
DESTAccess permissions to view messages (optional), default value - array("UA") - to all authorised users.
The following values can be used:
  • SG<X> - workgroup with ID=X;
  • U<X> - user with ID=X;
  • DR<X> - department with ID=X, including sub-departments;
  • UA - all authorized users.
  • G<X> - user group, for example: G2 - user group with ID 2.
SPERM Access permissions to view the message (optional); by default - array("UA") - for all authorized users.
FILESFiles, array of values, described by rules, provide in here.
IMPORTANTSet to "Y" by default. Activity Stream message is posted as "important".
IMPORTANT_DATE_ENDDate/time value is specified before which the message is deemed as important.

{POST_TITLE: 'header', 
POST_MESSAGE: 'text', DEST: ['SG1', 'U2'] }).
BX24.callMethod('log.blogpost.add', {POST_MESSAGE: 'Hello, world!'}, function(r){
		throw r.error();




User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix24», 2001-2021