0% found this document useful (0 votes)
318 views8 pages

Integrating Google Drive With PEGA Platform-2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
318 views8 pages

Integrating Google Drive With PEGA Platform-2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Integrating Google Drive with Pega Platform

Integrate your application with Google Drive to store, sync, and manage essential
business files. Pega Platform™ provides a Google Drive component with sample
configurations to interact with files via repository data pages, streamlining file
management within your application.

Integrate Google Drive with your application by completing the following steps:

1. Installing the Google Drive component.


2. Configuring a Google Drive authentication profile.
3. Creating a Google Drive repository.

Installing the Google Drive component

Download the GoogleDriveRepository.zip ZIP file that contains the Google Drive
component from Pega Marketplace. Then Import It your application.

[email protected] / [email protected]
Configuring a Google Drive authentication profile

Set up an OAuth 2.0 authentication profile to enable secure integration between


your application and Google Drive, allowing safe exchange of messages and file
management.

Before you start:

Register your Pega application with Google and take note of the client ID and client
secret. Refer to the Google documentation for further details

Reference: Configure a Drive UI integration | Google Drive | Google for


Developers

Enable Google Drive API

Create Client ID and Client Secret.

[email protected] / [email protected]
Copy this two key and save for later usage.

Note: Remember to add a Test user, if not you will get error when Authorize from
Authenticate profile (This is only for testing app no need published app)

[email protected] / [email protected]
In your Pega application, create an OAuth 2.0 authentication profile. For detailed steps,
refer to "Creating an authentication profile."

1. Open the Edit Authentication Profile form and go to the OAuth 2.0 tab.

2. Provide your application credentials:

 Grant type: Select Authorization code.


 Client identifier: Enter your Google client ID.
 Client secret: Enter your Google client secret.
 Scope: Enter https://www.googleapis.com/auth/drive (OAuth 2.0 Scopes for
Google APIs)

To ensure the authentication token refreshes automatically when accessing the


Google Drive repository, select the Use refresh token if available option.

[email protected] / [email protected]
To configure the connection for the repository API:

4. In the Endpoint configuration section:


 For Authorization code endpoint,
use:https://accounts.google.com/o/oauth2/v2/auth
 For Access token endpoint, use:
https://oauth2.googleapis.com/token
 For Revoke token endpoint, use:
https://oauth2.googleapis.com/token

These details ensure the proper connection to Google's OAuth 2.0 service for token
management.

[email protected] / [email protected]
5. Confirm your settings by clicking Save.

Creating a Google Drive repository

Set up a Google Drive repository in your application by defining the relevant


connection details to establish a link with the Google Drive instance you wish to
connect to

To configure a Google Drive repository in your Pega application:

6. Navigate to Dev Studio and open Records.


7. Go to the SysAdmin category and select Repository.
8. Click Create and provide the repository name and a brief description.
9. On the Edit Repository form, choose Select under the Repository type section
and select Google Drive.
10. In the Configuration section, pick the authentication profile that connects to
Google Drive.
11. Click Authorize to get a token for connecting with Google services.
12. Finally, verify the connection by testing the connectivity and save your settings.

This process establishes a secure connection between your Pega app and Google
Drive.

[email protected] / [email protected]
Now open Application rule and switch to integration tab. Then select “Store in repository”
radio button and select you created repository.

After brows you can access you Drive

Now all configurations are done, create a case and add a file. it will store your
google drive given location.

[email protected] / [email protected]
Attached file store our Drive.

Reference :
 Integrating Google Drive with Pega Platform
 Authenticate to Google Workspace APIs by using OAuth 2.0 client credentials

… Happy Learning …

[email protected] / [email protected]

You might also like