Try now Demo en
  • en
  • fr
  • de
  • Solutions
    • Use cases
      • Modern IntranetBuild strong internal culture & sense of belonging
      • Collaboration PlatformEfficient teamwork and project collaboration
      • Social NetworkEngage users & recognize contributions
      • Knowledge hubCentralize, organize and share company knowledge
      • Application PortalUnified access to business applications and information
    • Switch to eXo
      • Microsoft 365 AlternativeAn open-source digital workplace alternative to M365
      • Migrate to eXo PlatformA guided, secure migration path from your existing tools to eXo
  • Product
    • Overview
      • Platform overviewExplore core capabilities
      • Why eXoKey differentiators
      • InternationalisationMultilingual environments
      • MobileBranded mobile applications
    • Platform
      • No CodeTailor to your needs without code
      • IntegrationsConnectors & extension capabilities
      • Controlled AIGoverned, extensible AI
    • Technology
      • ArchitectureArchitecture & technology
      • SecuritySecurity measures
      • Open sourceComponents & licensing
  • Offers
    • EnterprisePrivate cloud or on-premise deployments
    • eXo HubsReady-to-use SaaS edition for teams
    • Compare EditionsCompare editions and choose the right fit
    • OEM EditionFor software vendors & service providers
    • ServicesDiscover eXo professional services
  • Resources
    • Resource center
      • Case studies
      • White Papers
      • Datasheets
      • Videos
    • FAQsAbout the software, the community and our offers
      • Platform & Use Cases
      • AI & Responsible AI
      • Deployment, Security & Compliance
      • Open-source, Pricing & Services
    • From The Blog
      • eXo Platform 7.1 is released
      • Digital sovereignty: when public organizations move from words to action
      • 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
    • REST APIs & DocumentationAll REST APIs available in eXo Platform
  • Company
    • About us
    • Customers
    • Partners
    • Contact us
    • Newsroom
  • Menu mobile
    • Enterprise Offers
    • Blog
    • About us
    • Resource center
    • Careers
    • Contact us
    • Try eXo
Use cases
  • Modern Intranet Build strong internal culture & sense of belonging
  • Collaboration Platform Efficient teamwork and project collaboration
  • Social Network Engage users & recognize contributions
  • Knowledge hub Centralize, organize and share company knowledge
  • Application Portal Unified access to business applications and information
Switch to eXo
  • Microsoft 365 Alternative An open-source digital workplace alternative to M365
  • Migrate to eXo Platform A guided, secure migration path from your existing tools to eXo
Overview
  • Platform overview Explore core capabilities
  • Why eXo Key differentiators
  • Internationalisation Multilingual environments
  • Mobile Branded mobile applications
Platform
  • No Code Tailor to your needs without code
  • Integrations Connectors & extension capabilities
  • Controlled AI Governed, extensible AI
Technology
  • Architecture Architecture & technology
  • Security Security measures
  • Open source Components & licensing
Enterprise Private cloud or on-premise deployments
eXo Hubs Ready-to-use SaaS edition for teams
Compare Editions Compare editions and choose the right fit
OEM Edition For software vendors & service providers
Services Discover eXo professional services
Resource center
  • Case studies
  • White Papers
  • Datasheets
  • Videos
FAQs About the software, the community and our offers
  • Platform & Use Cases
  • AI & Responsible AI
  • Deployment, Security & Compliance
  • Open-source, Pricing & Services
From The Blog
  • eXo Platform 7.1 is released
  • Digital sovereignty: when public organizations move from words to action
  • 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
REST APIs & Documentation All REST APIs available in eXo Platform
About us
Customers
Partners
Contact us
Newsroom
Enterprise Offers
Blog
About us
Resource center
Careers
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
    • Internationalisation
    • Mobile
    • No Code
    • Architecture
    • Integrations
    • Security
    • Open Source
  • Uses cases
    • Employee Portal
    • Knowledge management
    • Entreprise Social Network
    • Employee Engagement
    • Community Management
    • Extranet
  • Guides
    • What is a digital workplace?
    • Intranet guide
    • What is an extranet?
    • Employee engagement
    • Collaboration guide
    • Teamwork guide
    • Internal Communication guide
  • Enterprise
    • Product offer
    • Services Offer
    • Customers
    • About us
  • Resources
    • FAQs
    • Resource Center
    • Intranet Portal
    • What Is a Collaboration Software?
    • Talent Management
    • Employee Connection
    • Employee Intranet
    • Improve internal communication
    • eXo Tribe
  • Terms and Conditions
  • Legal
  • Privacy Policy
  • Accessibility
  • Contact us
  • Sitemap
  • Facebook
  • Twitter
  • LinkedIn
wpDiscuz