Documentation

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

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.
© «Bitrix Inc.», 2001-2018, «Bitrix Inc.», 2018