Help with agents and workflow/dataverse access

Neil Patel 0 Reputation points
2026-08-30T09:08:23.77+00:00

I was hoping you can help us with something. We are using Copilot Studio. We've built an agent to test things out and a workflow that adds a row to dataverse that it has access to. The workflow is triggered by the agent via a tool, and the agent uses it to add a new row to a database table.

If I'm in the workflow itself and I manually run that node, it works and a row gets added. So the workflow has the right level of access through the connection that we've got, but whenever the agent tries to call the workflow (as a tool), it's met with a 401 unauthorised error.

I've had a look at the help documentation and everything, but I'm not sure if we're missing something around permissions for the agent or if there's a reason that authentication is not carrying through.

Microsoft Copilot | Other

1 answer

Sort by: Most helpful
  1. Neil Patel 0 Reputation points
    2026-08-31T16:11:14.3333333+00:00

    start time: 8/31/2026, 2:02:37 PM (UTC)

    run id: 08584134219278938452966926551CU09

    workflow id: 76b2091b-6d29-42af-5c59-149e9fb87f7d
    {

    "Set-Cookie": "ARRAffinity=4973511b512b5fdc2f9ac8d2c215d43533ecadaf34ee9ef318025767afcf3a5aeb29bb4b19df1459d2ea781b605f33064b9fea1f144b525b9d7676625c4ffb5408DF076CB48ACD2F0000001458522986; path=/; secure; HttpOnly,ReqClientId=72839255-afd0-46f8-9fd6-4007937442ab; expires=Mon, 31-Aug-2076 14:02:37 GMT; path=/; secure; HttpOnly,ARRAffinity=4973511b512b5fdc2f9ac8d2c215d43533ecadaf34ee9ef318025767afcf3a5aeb29bb4b19df1459d2ea781b605f33064b9fea1f144b525b9d7676625c4ffb5408DF076CB48ACD2F0000001458522986; path=/; secure; HttpOnly",

    "WWW-Authenticate": "Bearer authorization_uri=https://login.microsoftonline.com/7178fbe1-c732-45ed-8079-99965c54a0a0/oauth2/authorize, resource_id=https://orgc164e156.crm17.dynamics.com/",

    "x-ms-service-request-id": "6bf61b91-5d3d-4749-bfd7-c87ed8671604",

    "Strict-Transport-Security": "max-age=31536000; includeSubDomains",

    "REQ_ID": "6bf61b91-5d3d-4749-bfd7-c87ed8671604",

    "AuthActivityId": "755efb09-9949-495c-ba4f-8c93742b4b71",

    "401_Error_Reason": "Authorization header value format is incorrect (Expected Format:Bearer access_token).",

    "NativeWebSession-Version": "2",

    "X-Source": "22551601991456222720010761219432062008618934180183621222137146121901351432042431,194196226155721256019913016824018219212421914320437118145483230183921914310187153215230",

    "Public": "OPTIONS,GET,HEAD,POST",

    "Date": "Mon, 31 Aug 2026 14:02:41 GMT",

    "Allow": "OPTIONS,GET,HEAD,POST",

    "Content-Type": "text/html; charset=utf-8",

    "Content-Length": "0"

    }

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.