June 11, 2025

Harnessing Microsoft Graph API with SS&C Blue Prism: Supercharge RPA with Microsoft 365 Integration

SS&C Blue Prism MVPs @harish.mogulluri  and @Neel1  have joined forces to write this detailed guide to connect SS&C Blue Prism to Microsoft Graph API using Blue Prism's native VBOs and Digital Exchange connectors.

Neel1
MVP

Community blogs are written by members of the SS&C Blue Prism Community and represent the views of the author. For more information on Community Blogs, or to submit your own, see here.

In the world of intelligent automation, access to enterprise data is the key to unlocking next-level efficiency and productivity. For organizations leveraging SS&C Blue Prism to automate critical business processes, integrating with Microsoft Graph API opens a gateway to the entire Microsoft 365 ecosystem — from Outlook and Teams to SharePoint, OneDrive, Excel, and beyond.

This article will guide you through the technical setup required to connect SS&C Blue Prism to Microsoft Graph API using Blue Prism's native VBOs and Digital Exchange connectors. You'll learn how to:

  1. Register an Azure AD app (prerequisite for authentication)
  2. Configure API permissions (using Utility - HTTP and MSAL.NET VBO)
  3. Authenticate with Graph API (via Graph API - Authentication connector from Digital Exchange)
  4. Execute API actions (leveraging specialized VBOs like Graph API - SharePoint or Graph API - Outlook)

Why Integrate Microsoft Graph API with Blue Prism?

Microsoft Graph API provides a unified RESTful endpoint to access data across Microsoft 365 services. When combined with Blue Prism’s digital workers, it enables:

  • Cloud-based automation (no local dependencies)
  • Scalable interactions with emails, files, calendars, and Teams
  • Secure access via OAuth 2.0 and Azure Entra ID.
  • Supports OData query parameters allowing you to filter, sort, and paginate results efficiently in a single request.

RPA Use Cases for Graph API Integration

These use cases make it easier for Blue Prism digital workers to move beyond desktop automation and seamlessly interact with enterprise cloud services,increasing scalability and control.

Microsoft 365 Service

RPA Use Case with Blue Prism + Graph API

Outlook

Automate reading, filtering, and responding to emails based on business logic

Calendar

Schedule or reschedule meetings, send reminders, detect conflicting events

SharePoint / OneDrive

Upload/download files, archive documents, retrieve structured data for processing

Teams

Send messages, trigger notifications, monitor channel activity

Users / Groups

Automate user provisioning, group access management, and employee onboarding workflows

Excel Online

Read and write Excel data stored in OneDrive or SharePoint without local interaction

Security / Compliance

Extract audit logs, monitor conditional access policies, or flag risk-based events

Step-by-Step: Register and Configure Microsoft Graph API Access for Blue Prism

Step 1: Register an Application in Azure AD

  1. Navigate to the Azure Portal by going to https://portal.azure.com and sign in with your Azure account.
  2. Search for “App Registrations” in the top search bar, and select it from the results.
  3. Create a New Registration:
    • Click “New Registration”
    • Enter a name for your application (e.g., BluePrismGraphBot)
    • Choose the Supported Account Type (e.g., Single Tenant for internal org use)
    • Click “Register”.

Amy_T_0-1749631164384.png

Step 2: Configure API Permissions

1. After registering the app, go back to the App Registrations screen and select your newly registered application.

2. Add API Permissions

  • In the left-hand menu, click on "API Permissions".
  • Click "Add a Permission".
  • Select "Microsoft Graph" from the list of APIs.

3. Choose Permission Type

  • Application Permissions: Use this if your app needs to perform actions at the tenant level without user interaction.
  • Delegated Permissions: Use this if your app needs to perform actions on behalf of a signed-in user.

4. For this example, we’ll use Application Permissions. 

  • Select Required Permissions
  • Choose the permissions your app requires (e.g., Access ReviewAgreementsConsent Request).
  • Click "Add Permissions".

5. if you’re using Application Permissions, ensure you grant Admin Consent for the permissions to take effect.

Amy_T_1-1749631387413.png

Amy_T_3-1749631468375.png

Amy_T_4-1749631481875.png

Step 3: Create a Client Secret

  1. Navigate to Certificates & Secrets
    • In the left-hand menu, click on "Certificates & Secrets".
    • Under the "Client Secrets" section, click "New Client Secret".
  2. Generate a New Secret
    • Provide a description for the secret (e.g., "Graph API Access").
    • Set an expiration period (e.g., 6 months, 1 year, or never).
    • Click "Add".
  3. Save the Client Secret
    • Once generated, copy the Client Secret value immediately. This will only be displayed once, so store it securely.

Amy_T_6-1749632242531.png

Amy_T_7-1749632252042.png

Step 4: Retrieve Application ID and Secret ID

  1. Locate Application ID
    • In the Overview section of your app registration, you’ll find the Application (Client) ID. Copy this value.
  2. Use the Client Secret
    • Combine the Application ID and Client Secret to authenticate your application when calling the Microsoft Graph API.

Amy_T_9-1749632339702.png

Amy_T_10-1749632348221.png

Configure Authentication & Permissions

Client Secrets & Permissions

  • Client Secrets: Expire after the duration set during app registration (e.g., 90 days). Rotate secrets proactively.
  • API Permissions: Critical for security and functionality. Choose based on:
    • Application Permissions: For service-to-service access (no user context).
    • Delegated Permissions: For actions on behalf of a user (requires sign-in).

 ReferenceMicrosoft Graph Permissions Guide

Permission Type

Use Case

Example Permissions

Application

Automated file processing in SharePoint

Files.ReadWrite.All, Mail.Send

Delegated

User-specific actions (e.g., calendar)

Calendars.ReadWrite, User.Read

Amy_T_11-1749632409501.png

Blue Prism Setup for Graph API

Prerequisites

  • Blue Prism v6.7+
  • Required VBOs:
    • Copy Microsoft.Identity.Client.dll to C:\Program Files\Blue Prism Limited\Blue Prism Automate.
    • Utility - HTTP
    • Utility - JSON
    • Utility - Strings
    • Utility - File Management
    • Microsoft Authentication Library (MSAL.NET)

Authentication Methods

  • Application Access: Inputs: Client ID, Client Secret, Tenant ID 
  • Delegated Access: Inputs: Client ID, Client Secret, Tenant ID, Username, Password

Amy_T_12-1749632409502.png

Blue Prism Connectors for Graph API

You can use the below list to leverage pre-built connectors from Blue Prism Digital Exchange.

 

Tips and Tricks for Graph API

Graph API 

Grab some IDs:

  • Site ID: GET https://<tenant>. sharepoint.com/sites/<site-url>/_api/site/id 
  • Drive ID: Use Get Default Drive Details action in SharePoint VBO. It is unique for a SharePoint.
  • File/Folder ID: Use Get Drive Children Content action.
  • It is a UUID (ex. 01ADH6OCA4T2W4SKL5OZELM3LOKI35OQEJ) that uniquely identifies the file/folder.

 For SharePoint Graph API

  1. Deletion and re-creation of file/folder will renew its ID.
  2. Drive ID will not change for the SharePoint where you are working.
  3. If you will try to move/upload the file which is opened by someone else - this error will come error":{"code":"notAllowed","message”: “The resource you are attempting to access is locked"}
  4. Move of file/folder will not change its ID.
  5. You may need to refresh the SharePoint URL to see the changes.
  6. List id would not change for a particular List.

 For Excel Graph API

  1. Excel operations work on Session ID which is secured by Open Workbook Action
  2. As per best practice, it is good to close the session.
  3. Creating the same worksheet which already exists will give Error: 400 Bad Request.
  4. Workbook ID will not change for the Excel where you are working, and it is must for using Excel Graph API VBO.
  5. Deleting the Worksheet which does not exist will give Error: 404 Not Found.
  6. Operation on Excel will work even though Excel is open in browser, but you may need to refresh SharePoint URL to see the changes.  

Graph API Testing & Debugging Tools

Current Limitations

Service

Constraint

Outlook

Mails can only be saved in .eml (not in .msg) format in your file explorer.

Max 150MB per message (including attachments).

Excel Online

Cannot create new workbooks via API. (Workaround - Either create workbook using Legacy MS EXCEL VBO OR use Open XML VBO to create a new empty workbook and then upload Empty Excel using Graph API SharePoint VBO Upload Action)

.xls extensions are not supported.

Graph API connectors have limited features as of now.

SharePoint

Uploading and downloading the attachments from SharePoint List is not a feature as of now.

 

Conclusion

Integrating Microsoft Graph API with Blue Prism unlocks:

  • No local Office apps required (cloud-native automation).
  • Reduced VM configuration time.
  • Fewer errors vs. legacy VBOs.

Next Steps:

Now that you know everything about Microsoft Graph APIs with Blue Prism, we recommend you  explore Digital Exchange connectors for your use case. And why not test authentication flows with Graph Explorer. Let us know how you get on.

3 Comments