Skip to content

Create Salesforce ConnectedApp fast

Published: at 12:13 PM

I recently created a cross-platform desktop app, Diffy2000, using Electron.JS that utilizes the Salesforce REST Api. In order to accomplish that integration I needed a Salesforce ConnectedApp (and seemingly every integration I’ve made with Salesforce in the past couple years).

What follows are the simplest steps required for creating an OAuth2 Salesforce ConnectedApp that will grant a valid client_id for use in the

  1. Create a new ConnectedApp

Navigate Setup —> App Manager —> New Connected App

connectedApp_newConnectedApp

  1. Set Api name, Contact Email, Select Enable OAuth Settings, callbackurl

Callback url = diffy2000://callback

connectedApp_set_apiname_contactemail_enable_Oauthsettings_callbackurl

  1. Set Callback url && minimum scopes

Callback url = diffy2000://callback Minimum scopes needed = Manage user data via APIs (api), Perform requests at any time (refresh_token, offline_access)

connectedApp_set_callbackurl_minimumscopes

  1. Set your Run As user to a System Administrator (preferrably)

connectedApp_set_run_as_user

  1. Push Save && Continue

  2. Push Manage Consumer Details on the next screen

connectedApp_push_manage_consumer_details

  1. Copy Consumer Key (this is your client_id)

Consumer Key = client_id

connectedApp_copy_consumer_key

  1. ConnectedApp other settings overview

connectedApp_other_settings_overview

Great, now you have a valid client_id from a registered Salesforce ConnectedApp and can play with integrations such as Diffy2000!