Bitrix24 REST API

crm.livefeedmessage.add

crm.livefeedmessage.add(fields)

Adds a message to the CRM feed.

Parameters

Parameter Description
POST_TITLE Message title.
MESSAGE Message text.
SPERM Message view rights, for example:
SPERM": {
"CRMCONTACT": ["CRMCONTACT3", "CRMCONTACT7"], // CRM contacts
"CRMCOMPANY": ["CRMCOMPANY1", "CRMCOMPANY3"], // CRM companies
"CRMDEAL": ["CRMDEAL3", "CRMDEAL5"], // CRM deals
"CRMLEAD": ["CRMLEAD9", "CRMLEAD11"], // CRM leads
"SG": ["SG5", "SG9"], // social network work groups
"U": ["U1", "U3"], // users
"DR": ["DR1", "DR7"], // subdivisions with subdepartments
}
ENTITYTYPEID Entity type (number) where the message is posted:
  • 1 - lead;
  • 2 - deal;
  • 3 - contact;
  • 4 - company.
ENTITYID Entity ID (number) where the message is posted:
  • 1 - lead;
  • 2 - deal;
  • 3 - contact;
  • 4 - company.
BX24.callMethod(
   "crm.livefeedmessage.add",
   {
      fields:
      {
         "POST_TITLE": "Some words about the service",
         "MESSAGE": "Bitrix24 is created on the basis of the Bitrix Framework platform.",
         "SPERM": {
            "CRMCONTACT": ["CRMCONTACT3", "CRMCONTACT7"],
            "CRMCOMPANY": ["CRMCOMPANY1", "CRMCOMPANY3"],
            "CRMDEAL": ["CRMDEAL3", "CRMDEAL5"],
            "CRMLEAD": ["CRMLEAD9", "CRMLEAD11"],
            "SG": ["SG5", "SG9"],
            "U": ["U1", "U3"],
            "DR": ["DR1", "DR7"],
         },
         "ENTITYTYPEID": 3,
         "ENTITYID": 3,
      }
   },
   function(result) 
   {
      if(result.error())
         console.error(result.error());
      else
         console.info("A message is created with ID " + result.data());
   }
);


User comments

Comments by users are not official documentation. Responsibility for use of the comments are born by users themselves.

The user comments section is not intended as a request box or training area, but rather for specific usage examples. For more general inquiries, please refer to link.

Comments may be added only by registered users and appear after moderation.
© 2001-2017 Bitrix, Inc. Bitrix® is a registered trademark of Bitrix, Inc. Powered by Bitrix Site Manager