◆ 무한한 가능성/& Visualforce

Salesforce Google Drive, External Data Source

치로로 2018. 4. 16. 20:32

source:

http://www.mstsolutions.com/blog/content/integrate-google-drive-salesforce-chatter-using-lightning-connect

Integrate Google Drive with Salesforce Chatter using Lightning Connect _ www.mstsolutions.com.pdf




Integrate Google Drive with Salesforce Chatter using Lightning Connect

Lightning Connect provides access to the files stored outside of your SalesforceOrganization, and enables seamless integration with the Force.com platform. External data is not stored directly in the Salesforce, but the Lightning components read the data from the external system using the external data source and access the data on demand in real time.

Step 1:

Under Build section, navigate to Customize → Salesforce Files → Settings →Files Connect and Enable the Files Connect option as shown in the below picture.

 

 

 

 

 

Step 2:

Create the Permission Set with the permission (In the System Permissions section) shown below and assign it to yourself, and also assign to the users who need to access the Google Drive.

 

Step 3:

Go to https://console.developers.google.com and create a Web application project with Drive API permission.

 

 

 

 

And generate the Client ID and Client Secret Key.

 

 

 

 

Step 4:

Under Administer section, navigate to Security Controls → AuthAuth Providers, and select the Provider Types as Open Id Connect, and enter the details as shown below. Once saved, copy and paste the generated Callback URL to the Redirect URIs in your Google Web Application.

 

 

 

 

 

 

 

 

 

Step 5:

Under Build section, navigate to Develop → External Data Sources and Enter the details as show below (select the Type and Authentication provider as the provider which we created in the previous step, and check the Start Authentication Flow on Save check box).

 

 

 

 

 

 

 

 

 

 

 

Once you click the save button, you will be redirected to the authentication page; now, click the Accept button on that page.

 

 

 

 

 

Once you got authenticated by Google, click the Validate and Sync button and select the External data source we created in the previous step and click theSync button.

Step 6:

Now, a new External object is created under the External Data source. Next, edit that object and select the deployment status as Deployed, and click Save.

Step 7:

Edit the Permission Set which we created in the

Step 2, and enable the External data source permission (In the External Data Source Access section).

Step 8:

Go to the Chatter and in the files section, you can see the new Data Source Section (Google Drive data source).

 

 

 

 

 

 

 

Click the Click here to check your credentials link for authenticating your Google drive. When you click this link, you will be redirected to the External Data Source page. Now, click the Save button and provide the access details on the authentication page.

Step 9:

Now, you can view all your files in the Google Drive in the chatter files section.

 

 

 

 

 

 

 

Step 10:

You can also share any file from your Google Drive with the Chatter group or a user.

 

 

 

 

 

 

Reference Link: Salesforce Files Connect

 

 

 

 

 




https://help.salesforce.com/articleView?id=admin_files_connect_google_xds.htm&type=5


https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connector_example_google_drive.htm


https://help.salesforce.com/articleView?id=admin_files_connect_overview.htm&type=5


https://help.salesforce.com/articleView?id=admin_files_connect_google_xds.htm&type=5


https://help.salesforce.com/articleView?id=admin_files_connect_google_auth.htm&type=5


https://help.salesforce.com/articleView?id=000239696&type=1