Skip to content

Advanced: Controlled Microsoft Graph Request

Advanced: Controlled Microsoft Graph Request workflow
  1. Controlled HighLevel test trigger
  2. Custom Request: GET selected drive fields
  3. Check status and metadata
  4. Reuse only reviewed response fields

An operations workflow needs to confirm metadata about its configured Microsoft library that is not exposed by a focused action. An experienced administrator can add a narrow read request without building another automation scenario.

A connected Location, an approved library in a granted site, and a reviewer who understands the chosen Graph endpoint and response. Custom Request is advanced. Prefer a focused action for ordinary file tasks.

  1. Use a dedicated test-tag trigger on an internal test contact. A reviewed periodic health-check workflow can replace it after acceptance.
  2. Add Microsoft Graph - Custom Request, version 1.0.
  3. Enter the following fictional example, replacing the Drive ID with your approved real value.
Input Value
Method GET
Path /v1.0/drives/b!exampleDocumentsDriveId
Query JSON {"$select":"id,name,webUrl,driveType"}
Body JSON Leave empty
  1. Run once. Expect Success=true, Status Code=200, and Response JSON containing the selected metadata.
  2. Compare the returned name, URL, and Drive ID to IT’s map. Parse/select only the fields needed by later HighLevel steps; Response JSON is a serialized string, not separately named field outputs.

This GET changes no SharePoint files. A fictional selected response is:

{
"id": "b!exampleDocumentsDriveId",
"name": "Documents",
"webUrl": "https://contoso.sharepoint.com/sites/Retail/Shared%20Documents",
"driveType": "documentLibrary"
}

Confirm status and metadata before using them. A failing HTTP response stops the action rather than returning a successful Status Code for failure branching.

The path must begin with /, include the API version, and must not contain an absolute HTTP(S) URL or fragment. The destination is fixed to Microsoft Graph. You cannot supply your own Authorization header or upload binary data through this action.

Custom Request adds no permissions. Sites.Selected and the site’s grant still apply to this library. Do not add broad scopes to make an arbitrary endpoint work without reviewing the need.

Response JSON is unmodified application data serialized as JSON. Depending on the endpoint it can include personal data, access-bearing URLs, or other sensitive fields. Do not forward the full response to email, tickets, contact notes, or unrestricted workflow fields. Use $select where supported and restrict access to execution history.

There is no automatic action retry or pagination. This GET may be rerun after a transient failure. Review endpoint-specific side effects before using POST/PATCH/PUT/DELETE, and check state before retrying any uncertain mutation.

For individual file metadata, use Get Item/Get Item By Path. For direct children, use List Folder Items. Any other custom request needs its own endpoint, permission, response-sensitivity, and repeat-run review.

Next: Review security and least privilege →