Back to top

How to create salesforce connected apps to access the salesforce REST API calls

Technical articles 0 Comments

A connected app defines your application’s OAuth settings for the Salesforce organisation. This will use OAuth protocols to authenticate and provide tokens for use with Salesforce APIs. In addition to standard OAuth capabilities, connected apps allow Salesforce admins to set various security policies and have explicit control over who can use the corresponding apps.

Here are the steps to create connected apps in sales force

Make sure that your chrome browser has “Advanced Rest Client” and “ARC cookie exchange” extensions

Signup for salesforce developer account at this link .  After signup is done a confirmation link will be sent to your e-mail. Approve the link sent to your e-mail and set password. Here password should not have any special symbols.

Now go to this link and complete the login process. After login is successfully done user specific dashboard comes up

Click on “New Connected App”. Under “Basic Information” fill in the mandatory fields marked with red

Under “API” select “Enable OAuth Settings”

Fill in “Callback URL” field

Under “Selected OAuth Scopes” select the below items one by one and click on add button

      “Full Access”

      “Provide access to your data via web”

      “Access and manage your data(api)”

Scroll down and click on “Save”. Next screen appears, now click on “continue”, then you will be taken to “Manage Connected Apps” Page

Here you can get “Consumer Key” and “Consumer Secret”.  Save both of them as you need them in the login API call

Now Click on Manage button, and then click on “Edit Policies”

In “IP Relaxation” dropdown, select “Relax IP Restrictions”

Leave the rest of the settings as they are

Now click on “Save”

This is the end of creation of connected app

Go to your dashboard of salesforce and click on top right icon ( profile icon ), then select settings

In the left side menu click on “Reset My security Token”. In the main page click on “Reset Security Token” button. Then security token will be sent to your email id. Save this as you need this in the login API call. This will be sent as access_token in login API call.

Find out API version

Click on setup icon on top right.  In left navigation menu, in the search box, search for API. Click on API in the search results

Under “WSDL and Client Certificates”

      Under “Enterprise WSDL”

          click on “Generate Enterprise WSDL

Wait till the page loads and see the API version and note it down

Open the advanced REST client in Chrome, build the below API call and run ( Call type is POST ). Here in the below API request enter your account related values in each field. Here client_id is your consumer_key,  client_secret is your consumer_secret and access_token is your security token. 

Call type POST                              +++9Mz_jDw69X2WiWlf1PxReW6jDovwUVcPbEZvXmEqbpNCa&client_secret=3673268616169373668&username=<your_email>&password=<your password>&access_token=<your security_token>

The response would look something like this…


        “access_token”: “00D7F000….”

        “instance_url”: “”,

        “id”: “”,

        “token_type”: “Bearer”,

        “issued_at”: “1520263457284”,

        “signature”: “Qk4u4Kfuu2vLUB0WYBl05xDpyk+UItvuH57LNOq3JHU=”


Now you can invoke your salesforce REST API calls by using the access_token i.e. by setting your raw header as

Authorization  Bearer <Your access_token which you got in login response>

Here instance_url you got in login response would be your base url to make REST API calls.

Leave a Comment

Your email address will not be published.

Please Enter Message

Please Enter Name

Please Enter Valid Email

Other Articles

By Lakshmi Sumathi

  • 10

    My video is not playing in Angular UI

    As all of us already know that Angular framework picks up assets like fonts, images, media ..etc from src/assets folder. I have created videos folder in asserts directory and placed video.mp4 media file there. From Angular project home directory here is the path of my video file src/assets/videos/video.mp4

    When I tried to refer this video with the path assets/videos/video.mp4 from my Angular HTML file,

  • 31

    మౌనానికి ఎన్నో ముఖ చిత్రాలు ( various faces of silence )

    పూల రేకుల లాలిత్యాన్ని మరపిస్తుంది
    కత్తి అంచు కాఠిన్యాన్ని తలపిస్తుంది
    తృణీకార సందేశానికి ప్రతీక అవుతుంది
    ఖేదాన్ని మోదాన్ని
    రాగాన్ని ద్వేషాన్ని
    సుఖాన్ని దుఃఖాన్ని
    విషాన్ని మాధుర్యాన్ని… భాషాంతరీకరిస్తుంది.
    పలుకుది శబ్ద భాషణ, మౌనానిది నిశ్శబ్ద భాషణ.
    అనుచిత సంభాషణను తుంచి వేయగల మందు మౌనం.
    Finally మౌనేన కలహం నాస్తి.
    భాషాంతరీకరణ  =  Expressing in a different language
    తృణీకారము = Neglect
    ప్రతీక = Symbol
    ఖేదము = grief
    మోదము = Happiness
    రాగము = Affection
    అనుచిత = Improper

  • 30

    Social sharing icons are not displayed in wordpress page ?

    One of the reasons could be that your plug-in’s css file is not loaded by header.php

    When we build custom themes we edit header.php to include new css, scripts …etc.

    In our case the header.php was rewritten from scratch, so the wp_head() php function added by wordpress in header.php template was removed.

    I installed AddToAny plug-in and when I tried to get the social sharing icons by adding [addtoany] short code,

%d bloggers like this: