Try now Demo en
  • en
  • fr
  • de
  • Solutions
    • Use cases
      • Modern IntranetBuild strong internal culture & sense of belonging
      • Collaboration PlatformEfficient project management & teamwork
      • Social NetworkEngage users & recognize contributions
      • Knowledge managementCentralize & share your company knowledge
      • Employee PortalEngage your community
    • Industries
      • Public Sector
      • Networks
      • Education
      • Enterprises
  • Product
    • Overview
      • Digital workplaceFeatures & capabilities
      • Why eXoKey differentiators
      • InternationalisationMultilingual environments
      • MobileBranded mobile applications
    • Platform
      • No CodeTailor to your needs without code
      • IntegrationsAvailable connectors & extension capabilities
    • Technology
      • ArchitectureAn overview of eXo Platform technology
      • SecurityeXo Platform security measures
      • Open sourceComponents & licensing
  • Offers
    • EnterpriseMore than 250 users
    • ProfessionalLess than 250 users
    • OEM EditionFor software vendors & service providers
    • ServicesDiscover eXo professional services
  • 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 7.0 is released
      • eXo Platform Community Edition 7.0 is released
      • 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
    • About us
    • Customers
    • Partners
    • Contact us
    • Newsroom
  • Menu mobile
    • Pricing
    • About us
    • Careers
    • Resource center
    • Blog
    • Contact us
    • Try eXo
Use cases
  • Modern Intranet Build strong internal culture & sense of belonging
  • Collaboration Platform Efficient project management & teamwork
  • Social Network Engage users & recognize contributions
  • Knowledge management Centralize & share your company knowledge
  • Employee Portal Engage your community
Industries
  • Public Sector
  • Networks
  • Education
  • Enterprises
Overview
  • Digital workplace Features & capabilities
  • Why eXo Key differentiators
  • Internationalisation Multilingual environments
  • Mobile Branded mobile applications
Platform
  • No Code Tailor to your needs without code
  • Integrations Available connectors & extension capabilities
Technology
  • Architecture An overview of eXo Platform technology
  • Security eXo Platform security measures
  • Open source Components & licensing
Enterprise More than 250 users
Professional Less than 250 users
OEM Edition For software vendors & service providers
Services Discover eXo professional services
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 7.0 is released
  • eXo Platform Community Edition 7.0 is released
  • 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
About us
Customers
Partners
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