integrating salesforce and sharepoint 2013 - netwoven · •create custom web services in sfdc...

17
Integrating Salesforce and SharePoint 2013 Netwoven Inc.

Upload: phamhuong

Post on 28-Apr-2018

223 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Integrating Salesforce and SharePoint 2013

Netwoven Inc.

Page 2: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Audience Background

• How many have some experience with:

– Salesforce.com: basic Sales or other Apps

– SharePoint 2013 Apps (SP or Cloud hosted)

– Development on force.com and SharePoint platforms: REST, OAuth, .NET, Apex

Page 3: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Inbound Integration Approaches

• Inbound call to Salesforce from SharePoint:

– Use Force.com SOAP or REST APIs

• Leverage using toolkits such as the.NET / Java / PHP / Adobe Flex Toolkits, Mobile SDK

– Authentication Pattern

• Use password and security token to set up the connection (e.g. Secure Store)

• Use OAuth 2.0:– Define a Remote Access app or Connected App in Salesforce

– Use Consumer Key and Secret and one of the supported OAuthFlows to get access token

Page 4: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Inbound Integration Approaches• Web Server OAuth Authentication Flow:

Page 5: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Inbound Integration ApproachesSample REST request and JSON response:

Page 6: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Inbound Integration Approaches

• Create custom web services in SFDC usingApex

• Apex classes as REST web services http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_rest.htm|StartTopic=Content%2Fapex_rest.htm|SkinName=webhelp

Page 7: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Demo: Inbound Integration

• Scenario 1:

– Create a Lead in Saleforce from SharePoint

• Web Part leveraging Force.com SOAP APIs

• Scenario 2:

– Display Opportunities from Salesforce in SharePoint

• SP Hosted App leveraging Force.com REST APIs

Page 8: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Outbound Integration Approaches

• Outbound call from Salesforce to SharePoint:– Invoke external web services from Apex

• Feed WSDL to "Setup“ -> "Apex Classes" -> "Generate from WSDL"

– Outbound messaging to send SOAP-based messages to an external web service endpoint• Typically triggered by workflow rules on persisted objects

• allows easy callbacks to the Force.com platform using the Force.com Soap API, as outbound messages contain the enterprise/partner endpoint URLs, as well a session ID token.

• Retry feature

• HTTP/S and X.509 certificate based security

– Email integration for inbound and outbound messaging

Page 9: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Outbound Integration Approaches

OutboundMessaging Flow

Page 10: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Outbound Integration Approaches

• Setting up Endpoint on SharePoint

– External Topologies for SharePoint• http://technet.microsoft.com/en-

us/library/cc287908%28v=office.12%29.aspx

• http://www.microsoft.com/en-us/download/details.aspx?id=24079

– E.g. Edge Firewall topology using Forefront UAG

Page 11: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Demo: Outbound Integration

• Demo Scenario:

– Create a new project site in SharePoint when a new Lead is created in Salesforce

• Other Useful Scenarios: – Launch SharePoint Workflows based on defined changes in

Salesforce

– Keep Tasks / Contacts / User Profiles in sync

Page 12: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Search Integration

• Surfacing Salesforce content in SharePoint search results

– Crawl Salesforce (e.g. Chatter) using custom crawl connector

– User mapping and attaching ACLs for non-public content non-trivial

– Map managed properties to crawled propertiesand optionally specify other settings (e.g. refinable)

• Demo: Search of public Chatter feed

Page 13: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

AppendixBackground Information

Page 14: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

Salesforce Introduction

• On-Demand, Multitenant Applications that Run in the Cloud

• Variety of APIs to integrate

– Force.com SOAP API and REST API, Bulk API, Streaming API, Metadata API, Chatter API

– https://help.salesforce.com/apex/HTViewHelpDoc?id=integrate_what_is_api.htm&language=en_US

• Sign up for Developer Editon account athttp://developer.force.com/ – Simple Point and Click application

http://www.salesforce.com/us/developer/docs/fundamentals/index.htm

Page 15: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

SharePoint 2013 Apps Introduction• Provide fully immersive experience and optionally

extend existing UI or provide embeddable parts for pages

• Apps vs classic Farm or Sandbox Solution

– Future SharePoint upgrades, integrate cloudresources , easy discovery and installation process, leverage alternate standards like MVC or Java/PHP

Page 16: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

SharePoint Apps: Hosting Options

• Apps cannot contain custom code that runs on the SharePoint server

– Not a significant limitation - custom business logic moves either "down" to the client device or "up" to the cloud

• Cloud Hosting Option(Provider Hosted or Autohosted)– App uses SharePoint CSOM or REST endpoints to connect to

SharePoint

– Use STS’s OAuth support to access SP resources on behalf of the user

– Perform CRUD operations on SharePoint content and Leverage SP capabilities (Docs, Search, Taxonomy, Workflow, Social)

– Server side code

Page 17: Integrating Salesforce and SharePoint 2013 - Netwoven · •Create custom web services in SFDC using Apex •Apex classes as REST web services

SharePoint Apps: Hosting Options