Sunday, 4 November 2018

Force.com Integrations

Integrations :
==============
Force.com offers excellent support for integration with other platforms.

outbound :
==========
On the outbound side making callouts ,it supports both SOAP and REST ,or you can use direct web requests using Get or Post.

your ability to make callouts depends on the execution context.For example you cannot make callouts during a trigger.

Note : However,there is no limit to the number of callouts you can make over a 24-hour period.

Inbound :
==========

The salesforce Platform supports many different APIs that external applications and services can use to call into your organization.

1.Standard APIs

 Metadata ,Tooling and Apex APIs    :
===========================
The metadata API allows you to import, export and modify system metadata.

The Tooling API and Apex APIs also allows you to work with metadata but are particularly intended for use by external developer tools allowing you,for example,to run unit tests and review code coverage results.

 Analytics API  :
==============

The analytics API allows you to run reports and view the resulting data sets.

Streaming and Bulk APIs :
=====================

The streaming API allows you to subscribe to an org and watch for changes in org data.

The bulk API provides a mechanism for transferring large amounts of data to and from an org.

 Partner API,REST API and Enterprise APIs :
=================================

The partner API,REST API and Enterprise APIs allow external applications to perform direct operations on your organization data much as you would in Apex.

They can query for describe information to find out about the objects and fields defined in an org.

They can query and search for data.They can perform DML operations to retrieve,set and delete data.

The partner API is a SOAP API whose WSDL you can obtain using the API settings in your
salesforce org.

The REST API has comparable functionality for those who prefer to use REST instead
of SOAP.

Note : REST API is newer and may not support all of the features of the platform API,nor does anyone guarantee that every feature in the REST API is implemented in the partner API.


The Enterprise API is also SOAP based, but the WSDL it generates is specific to the organization from which it is downloaded.

it reflects the organization's metadata,and this provides data types that correspond to the specific objects,fields and metadata in an organization

This can simplify the external programming considerably as the generated proxy
object will contain elements that correspond exactly to the objects and fields in the specific org.

Note : we Typically prefer to use the Enterprise API when writing an external application that is specific to one org or customer.

The partner API when creating external applications designed to work with salesforce orgs in general.



Partner,Enterprise and REST API :
=========================
Partner API

soap
describe,query,DML on any org.

Rest API

HTTP/REST

Describe,query,DML on any org

Enterprise API

SOAP
Describe,query,DML on specific org.

Custom API :
=============
Define your own SOAP or REST
endpoints using Apex.

No comments:

Post a Comment