Sales Force Integration


Problem:
I need to connect to Sales Force REST API and fetch data for another application

Solution:

1. Create a new remote access application in Sales Force
2. Create OAuth token and secret from Sales Force
3. Use the token and secret in your application

The http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_REST_API 
provides how this is done but its not the latest and things have changed a lot.

1. Create a new remote access application in Sales Force
        Log in to Salesforce.com with your developer account, 
        navigate to Setup ➤ Develop ➤ Remote Access, 
        Click New to create a new remote access application

    Once you click Remote Access it will say 
    Remote Access Objects have been moved to Applications. 

    You'll be redirected to that page in five seconds, or you can click Take Me There to go now. 
    Then you will be forwarded to Create -> Apps section
2. Go to Connected Apps and create new

    Fill in the App details and Check the OAuth Enable
3. Add Access Rights - Full or selected and Save
4. You will be displayed with the App details that you created with a section called
   "API (Enable OAuth Settings) which will contain the Consumer Key and the Consumer Secret to    use (You can make use of the call back url or ignore it)

Note: When IP range is entered for the profile to restrict access by IP range then Token is not available for the account to be used at login by the API - IP Restrictions are added to the Login IP Ranges
Missing Reset Security Token option
https://help.salesforce.com/HTViewSolution?id=000182450


Comments

Popular posts from this blog

API design best practices

DB Connection Issues

Reading Excel Sheet on client side and processing it