Microsoft Graph - Custom Request
Send an advanced authenticated JSON request to a Microsoft Graph path using this HighLevel Location's Microsoft connection.
Current published action version 1.0
When to use it
- Use a Microsoft Graph JSON endpoint that is not covered by a dedicated product action.
- Build an advanced workflow when you understand the Graph endpoint, permissions, request body, and response sensitivity.
Before you start
- A connected Microsoft 365 connection for this HighLevel Location.
- A Microsoft Graph path beginning with / rather than an absolute URL.
- Permissions already granted to the customer-owned Entra app for the endpoint you call.
In the connected Location, open your workflow, add this named action, enter the values below, and save. Use the Custom Value Picker for dynamic inputs and earlier action outputs.
Inputs
| Input | How to configure it |
|---|---|
MethodmethodRequired · select | Microsoft Graph HTTP method. Default: GET. Accepted: GET, POST, PATCH, PUT, DELETE. Example: |
PathpathRequired · string | Microsoft Graph path beginning with /, for example /v1.0/drives/{drive-id}. Absolute URLs are not accepted. Example: |
Query JSONquery_jsonOptional · textarea | Optional JSON object of query parameter names and primitive values. Example: |
Body JSONbody_jsonOptional · textarea | Optional JSON value sent as an explicitly serialized JSON request body. Example: |
Practical workflow
- Controlled internal test trigger
An administrator approves a read-only library metadata request.
- Custom Request
Method: GET; Path: /v1.0/drives/b!exampleDocumentsDriveId; Query JSON: {"$select":"id,name,webUrl,driveType"}; Body JSON empty.
- Verify selected metadata
Expect Status Code 200; parse only the fields needed from Response JSON.
Run with a dedicated test contact and non-sensitive SharePoint data. Inspect the action result and compare it with the intended library before enabling ordinary contacts. See the complete business recipes for end-to-end configuration.
Expected outputs
| Output | Meaning and use |
|---|---|
Successsuccessboolean | Confirms that the action completed successfully. Use as a completion checkpoint before relying on other outputs. Example valuetrue |
Status Codestatus_codenumerical | HTTP status code returned by Microsoft Graph. Check the successful HTTP status. Failed requests stop the action instead of returning a normal status output. Example value200 |
Response JSONresponse_jsonstring | Serialized JSON response returned by Microsoft Graph. Parse only the fields you need; treat the full response as potentially sensitive. Example value{"id":"example-drive-id","name":"Documents"} |
In a later step, select the named output from this action through HighLevel's Custom Value Picker. Retain the Drive ID with an Item/Folder ID. An array such as Items or Folders needs deliberate member selection; it is not a scalar Item ID. Output mapping guidance →
Limits and retry behavior
- Advanced JSON-only action. Destination is fixed to graph.microsoft.com; no custom host, Authorization header or binary transfer input.
- Path starts with / and includes an API version such as /v1.0/. Absolute HTTP(S) URL text and fragments are rejected. Query JSON must be an object with primitive values; Body JSON can be any valid JSON value.
- No automatic pagination. The request uses only the runtime app’s existing permissions and resource grants.
- Response JSON is serialized without field-level redaction and can contain personal data or access-bearing URLs. Use $select where supported, restrict history access, and never forward the full body indiscriminately.
- Non-2xx responses fail the action; Status Code is an output of successful requests, not a general failure-branching mechanism. Successful bodyless responses return an empty Response JSON string.
No automatic action retry. A GET can be rerun after a transient failure. Before repeating POST/PATCH/PUT/DELETE, review the endpoint’s side effects and inspect current resource state.
Common errors and recovery
- Missing or invalid input / 400
- A required dynamic value is blank or has an unsupported format. Inspect the resolved value on the enrolled contact; compare with the input format above before retrying.
- Invalid path or JSON
- The Graph path is not relative, or Query JSON / Body JSON is invalid. Use a path beginning with / and valid JSON values.
- 401
- The Location's Microsoft connection is unavailable or expired. Reconnect or verify the HighLevel External Authentication connection.
- 403
- The customer-owned Entra app does not have permission for the requested endpoint or resource. Review the endpoint and the app's existing permissions. Do not broaden permissions without an explicit need.
- 429 / 5xx
- Microsoft Graph throttled or failed the request. Follow the endpoint's retry guidance and avoid blind retries for state-changing requests.
Failed requests stop the action; do not rely on Success=false as a returned error contract. Keep secrets and private URLs out of diagnostics. Troubleshooting →
Permissions and security
- The action itself grants no Microsoft permission. It can use only the application permissions and resource grants already configured for this Location's customer-owned Entra app.
- For SharePoint V1, the reviewed baseline is the Microsoft Graph application permission Sites.Selected with explicit site grants. A custom endpoint may require a separately reviewed permission.
Runtime access is app-only and does not mirror the permissions of the person enrolling a contact. A Drive ID selects a library inside a granted site; it is not a library-level security grant. Returned Web URLs require the reader's own Microsoft access. Security model →
Related actions
Version and reference review
Current published action: 1.0. Compare with the version in your existing workflow before adopting these fields; older published versions may differ.
Reference reviewed on against application commit 8440a0f. Published versions remain immutable.