Salesforce NPSP

Intro

To connect Giving Insight to Salesforce, we will be using connected app. A connected app is a Salesforce application that allows external applications to access your Salesforce data.

To connect Giving Insight to Salesforce using a connected app, you will need to:

  1. Create a connected app in Salesforce.
  2. Generate a consumer key and consumer secret for the connected app.
  3. Configure Giving Insight to use the consumer key and consumer secret to connect to Salesforce.

Create “Connected App”

  1. Login to your Salesforce enviroment.

  2. From the top navigation, click on cog icon and click on setup. Alt text

  3. From the “Quick Find” search for “App Manager” and click on “App Manager”. Alt text

  4. From the “App Manager” screen, click on “New Connected App” button.

  5. Under the “Basic Information” section fill in the following information.

    • Connected App Name: Giving Insight NPSP Intergration
    • API Name: (This will be automatically filled from the connected app name)
    • Contact Email: givinginsight@actonfiji.com Alt text
  6. Under the “API (Enable OAuth Settings)” section fill/select in the following information.

    • Enable OAuth Settings: Check the box to enable this option
    • Enable for Device Flow: Check the box to enable this option
    • Callback URL: https://www.givinginsight.com/analytics-for-fundraisers/
    • Selected OAuth Scopes, choose the following scopes:
      • Full access (full) for now. Later we will change to more specific scopes.
      • Perform requests at any time (refresh_token, offline_access)

    Alt text

  7. Click on “Save” button.

Policy configuration

  1. From the “Quick Find” search for “Manage Connected Apps” Alt text
  2. From the “Manage Connected Apps” screen, search for “Giving Insight NPSP Intergration” and click on “edit” link that’s on the left.
  3. Scroll down to section “OAuth Policies”.
    • Make sure “Permitted Users” is set to “All users may self-authorize”.
    • IP Relaxation should be set to “Relax IP restrictions” and “Refresh Token Policy should be set to “Refresh token is valid until revoked” Alt text
  4. Click on “Save” button.

Genereate consumer Key and Secret

  1. From the “Quick Find” search for “App Manager”
  2. From the “App Manager” screen search for “Giving Insight NPSP Intergration” and click on the arrow that’s point down. Alt text
  3. From the above #2 you will see option view, edit and manage. Click on “view” option.
  4. Scroll down to “API (Enable OAuth Settings)” section and click on “Manage Consumer Details” button. Alt text
  5. You will be asked to verify your identity.
  6. After verification, you will redirected to the “Consumer Details” screen. Where you will see “Consumer Key” and “Consumer Secret”.
  7. Copy and send the “Consumer Key” and “Consumer Secret” to the Giving Insight contact person.
  8. Click on “Generate” button to genreate the “Staged Consumer Details”
  9. Click on “Apply” button.
  10. You will see the message as per screenshot below, click on “Apply” button. Alt text

Request an Authorization Code

  1. Copy the following link to a notepad.
https://<My Domain Name>.my.salesforce.com/services/oauth2/authorize?
client_id=<Consumer Key>&
redirect_uri=https://www.givinginsight.com/analytics-for-fundraisers/&
response_type=code
  1. Change <MyDomainName> to your Salesforce domain.
  2. Change <Consumer Key> to the consumer key that was generated in the above section.
  3. Open your internet browser
  4. Copy the link with the changes you made to the link in #2 and #3 above, paste in the address bar of your internet browser.
  5. If you see a Salesforce login screen that means everything at this point went well and if you not seeing the login screen then something is wrong. Please double check the steps mention in these section.
  6. Enter your login details in the Salesforce login screen.
  7. You should see a screen similar to the following requesting approval. Scroll down and you will see “Deny” and “Allow” button. Click on the “Allow” button to proceed. Alt text
  8. You will be redirect to Giving Insight website and it should look something like this. Alt text
  9. The address bar of your Internet browser contains the “Authorization Code”. Copy everything that’s in your Internet browser address bar and send it to the contact person of Giving Insight.

Outro

That’s all that was needed to set up the Salesforce connected app. When the Giving Insight team receives the “Consumer Key” and “Consumer Secret”, they will proceed to configure Giving Insight to talk to Salesforce via the Salesforce API.