Try now Demo en
  • en
  • fr
  • de
  • Product
    • Platform
      • Software TourFeatures & capabilities overview
      • Why eXoeXo Platform key differentiators
      • InternationalisationSupporting multilingual environments
      • MobileResponsive & available on any device
    • Technology
      • No CodeTailor eXo platform to your needs
      • ArchitectureAn overview of eXo Platform technology
      • IntegrationsAvailable connectors & integration capabilities
      • SecurityeXo Platform security measures
      • Open sourceComponents & licensing
  • Solutions
    • Communication
      • Modern IntranetBuild your company culture
      • Knowledge managementCentralize and share your company knowledge
      • Community managementEngage your community
      • ExtranetInvolve your clients and partners
    • Collaboration
      • Social NetworkConnect all your employees
      • Collaboration PlatformEmpower your teams
      • Employee PortalCentralize your work environment
      • Employee EngagementEngage & empower your employees
    • For
      • Public Sector
      • Networks
      • Education
      • Enterprises
  • Pricing
  • Resources
    • Resource center
      • Case studies
      • White Papers
      • Datasheets
      • Videos
    • Migration guide
      • Alternative to Microsoft 365
      • Alternative to Sharepoint
      • Alternative to Workplace from Meta
    • From The Blog
      • eXo Platform 6.5 is released: personalized navigation, multi-sites management and more
      • eXo launches its online community platform – eXo Tribe!
      • Cloud Vs On-premise Digital Workplace: Which one is right for your business?
  • Community
    • CommunityJoin our online community platform
    • DownloadLaunch eXo platform in your infrastructure
    • Source codeSource code on github
    • FAQsAbout the software, the community and our offers
    • REST APIs & DocumentationAll REST APIs available in eXo Platform
  • Company
    • Customers
    • Partners
    • Services
    • About us
    • Contact us
    • Newsroom
  • Menu mobile
    • Pricing
    • About us
    • Careers
    • Resource center
    • Blog
    • Contact us
    • Try eXo
Platform
  • Software Tour Features & capabilities overview
  • Why eXo eXo Platform key differentiators
  • Internationalisation Supporting multilingual environments
  • Mobile Responsive & available on any device
Technology
  • No Code Tailor eXo platform to your needs
  • Architecture An overview of eXo Platform technology
  • Integrations Available connectors & integration capabilities
  • Security eXo Platform security measures
  • Open source Components & licensing
Communication
  • Modern Intranet Build your company culture
  • Knowledge management Centralize and share your company knowledge
  • Community management Engage your community
  • Extranet Involve your clients and partners
Collaboration
  • Social Network Connect all your employees
  • Collaboration Platform Empower your teams
  • Employee Portal Centralize your work environment
  • Employee Engagement Engage & empower your employees
For
  • Public Sector
  • Networks
  • Education
  • Enterprises
Resource center
  • Case studies
  • White Papers
  • Datasheets
  • Videos
Migration guide
  • Alternative to Microsoft 365
  • Alternative to Sharepoint
  • Alternative to Workplace from Meta
From The Blog
  • eXo Platform 6.5 is released: personalized navigation, multi-sites management and more
  • eXo launches its online community platform – eXo Tribe!
  • Cloud Vs On-premise Digital Workplace: Which one is right for your business?
Community Join our online community platform
Download Launch eXo platform in your infrastructure
Source code Source code on github
FAQs About the software, the community and our offers
REST APIs & Documentation All REST APIs available in eXo Platform
Customers
Partners
Services
About us
Contact us
Newsroom
Pricing
About us
Careers
Resource center
Blog
Contact us
Try eXo
  1. Accueil
  2. Tutorial
  3. Adding Activity Streams to SugarCRM with eXo

Adding Activity Streams to SugarCRM with eXo

As I promised in my previous post about the eXo Platform Widget, here is a real-life example of using the plugin to add social features to a popular enterprise application. Today we introduced the eXo Plugin for SugarCRM, for adding activity stream and collaboration capabilities to an instance of SugarCRM. The plugin is a cool prototype that shows the potential for our eXo Platform widget technology, and can be found (for free of course) on the SugarForge.

We have several new additions to the eXo Resource Center dedicated to the new SugarCRM plugin:

  • Video Demo showing the plugin integrated in SugarCRM
  • A Tutorial that provides more technical detail and step-by-step instructions for installing and using the plugin
  • Getting Started Guide – a video to show you how to install the plugin on your own

in action, we in this video demo, or start using it for themselves with the tutorial and getting started guide.

How Does It Work?

In this use case, we start with a SugarCRM user who has access to a case (1). If they click on the eXo icon, a popup window is displayed, and the content is loaded from the eXo server (3). Because the request is sent directly to the eXo server, it can return personalized content. This integration is possible with the eXo Platform widget.

Next, a user creates a task associated to a case (1). The eXo plugin prepares an activity and sends it to the eXo collaboration space that corresponds to the case (2).

To go into more technical detail about the implementation, we can look at the two main parts of the integration:

  • UI integration in the UI
  • Push mechanism for activities

The UI Integration

To integrate some of eXo Platform’s social and collaboration features into SugarCRM, we used the Sugar Cloud Connector. This allowed us to simply add the eXo Platform Widget.

We integrated our code snippet into the template:


spaces.createSpaceBox(document.getElementById("spaces_div"), "Sugar {$module} {$fields.{{$mapping_name}}.value}", "{$fields.name.value}");

Push Mechanism for Activities

Because eXo Platform implements OpenSocial, we can use it to publish the activities taking place in SugarCRM. As we used for the Grails integration in a previous demo, there is also a client library for OpenSocial in PHP.

To be notified of new tasks and other things created and modified, we used Logic Hooks. Events are filtered so only the ones the user is interested in are presented (i.e. only the events associated with a specific case). When a related event is found, eXo creates a new message. Finally, this message is submitted to the eXo Platform server using the following code:


$provider = new osapiProvider("", "", "", "", $spaces_config["os_rpc_url"], "eXo Social", true, null);

$auth = new osapiOAuth2Legged($spaces_config["os_oauth_key_name"], $spaces_config["os_oauth_key_secret"], $spaces_config["os_user"]);

$osapi = new osapi($provider, $auth);

//We create the activity
$osactivity = new osapiActivity();

$osactivity->setTitle($activity);
$osactivity->setBody($activity);

//Configuring the message
$params = array(
‘userId’ => ‘@me’,
‘groupId’ => “space:”.$spaceName,
‘activity’ => $osactivity,
);

// Start a batch
$batch = $osapi->newBatch();
$batch->add($osapi->activities->create($params));

 

//Sending the activity
$result = $batch->execute();

In the code, you may recognize that we use oAuth to authenticate the request. To learn how to configure oAuth for your eXo implementation, check out the OpenSocial documentation.

Brahim Jaouane

I am a Digital Marketing specialist specialized in SEO at eXo Platform. Passionate about new technologies and Digital Marketing. With 10 years' experience, I support companies in their digital communication strategies and implement the tools necessary for their success. My approach combines the use of different traffic acquisition levers and an optimization of the user experience to convert visitors into customers. After various digital experiences in communication agencies as well as in B2B company, I have a wide range of skills and I am able to manage the digital marketing strategy of small and medium-sized companies.

Full-featured digital workplace with everything your employees need to work efficiently, smartly integrated for a compelling employee experience

  • Product
    • Software tour
    • Communication
    • Collaboration
    • Knowledge
    • Productivity
    • Open Source
    • Integrations
    • Security
  • Uses cases
    • Digital Workplace
    • Intranet software
    • Collaboration software
    • Knowledge management software
    • Entreprise Social Network
    • Employee Engagement platform
  • Roles
    • Internal Communications
    • Human Resources
    • Information Technology
  • Company
    • Product offer
    • Services Offer
    • Customers
    • Partners
    • About us
  • Resources
    • FAQs
    • Resource Center
    • Collaboration guide
    • What is a Digital workplace?
    • What is an intranet?
    • Employee engagement
  • Terms and Conditions
  • Legal
  • Privacy Policy
  • Accessibility
  • Contact us
  • Sitemap
  • Facebook
  • Twitter
  • LinkedIn
wpDiscuz