Add Connected App to Enable Scenarios to Access Salesforce DataA connected app integrates an application like Bright Pattern Contact Center with Salesforce using APIs and lets Bright Pattern scenarios access and interact with Salesforce data objects using CRUD (i.e., Create, Retrieve, Update, Delete) functionality.The server-side integration is implemented using Salesforce web services via the Salesforce REST API (http://wiki.developerforce.com/page/REST_API). Bright Pattern Contact Center authenticates with Salesforce using the [http://www.salesforce.com/us/developer/docs/api_rest/Content/intro_understanding_web_server_oauth_flow.htm Web Server OAuth Authentication flow]. The [http://www.salesforce.com/us/developer/docs/api_rest/Content/intro_understanding_refresh_token_oauth.htm refresh token] mechanism is used to obtain and refresh the access token.This article will show you how to:* Create a new connected app* Enable API access* Get the consumer key and consumer secret needed for your integration account properties* Determine which user roles can access the connected app# At the bottom of the Apps list, under '''Connected Apps''', click '''New'''.[[File:SFDC-Classic-Create-New-App.PNG|800px|thumbnail|center|Create new app]]On the ''New Connected App'' page, set the following:* '''Connected App Name''' - Any unused name* '''API Name''' - Any unused name* '''Contact Email''' - Your contact email address[[File:sfdc-integration-guide-image13.png|thumb|650px|center|]]* '''Enable OAuth Settings''' - Select checkbox* '''Available OAuth Scopes''' - Select the following:** Access and manage your data (api)** Full access (full)** Perform requests on your behalf at any time (refresh_token, offline_access)[[File:Sfdc-integration-guide-step2.png|thumb|800px|center]]'''Important: Click "Save" when you are done!'''Updates to these parameters take a few minutes to propagate through the system--wait 10 minutes while Salesforce updates these settings internally.# In ''App Setup > Apps > Connected Apps'', select and view details of the connected app you just created.# Save these for later use, when you paste them into your [[5.4:Sfdc-integration-guide/Classic/IntegrationAccount | integration account properties]].# Click '''Save'''.