AnsweredAssumed Answered

Add new module in activity stream ?

Question asked by umar.akhlaq on Jan 12, 2016
Latest reply on Jan 12, 2016 by umar.akhlaq

Hello Everyone,
I tried to add new module in activity it is successfully coming on admin settings on activity stream but it is not updating when i am creating a new record of that module?

Adding this code at this location (modules/Leads/SugarFeeds/LeedFeed.php) but its is not working

<?php
require_once('modules/SugarFeed/feedLogicBase.php');
class LeadFeed extends FeedLogicBase
{
   public $module = 'Leads';
  
   public function pushFeed($bean, $event, $arguments)
  {
   global $locale;
   $text = '';
   if (empty($bean->fetched_row)) {
   $full_name = $locale->getLocaleFormattedName($bean->first_name, $bean->last_name, '');
   $text =  '{SugarFeed.CREATED_LEAD} [' . $bean->module_dir . ':' . $bean->id . ':' . $full_name . ']';
  }
   if (!empty($text)) {
  SugarFeed::pushFeed2($text, $bean);
  }
  }
}

 

 

 


Anyone can help? P.S I am using community edition 6.5.21 edition
Regards,
M.Umar Akhlaq

Outcomes