web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Authentication error with HTTP request trigger

(6) ShareShare
ReportReport
Posted on by 16
We have a sandbox environment that we recently created by copying our production enviornment.
In the new sandbox, we have several cloud flows are triggered by the step: What a HTTP Request is Received. This trigger generates a url that we are using to call the flowl.
We are using this url in the Ribbon Workbench solution from the XRM Toolkit.
When we click the ribbon button to call the flow, we are getting the following message:
The authentication credentials are not valid.
The trigger option for 'Who can trigger the flow?' is set to Anyone.
We have googled the issue, and out research seems to indicate that our SAS token is invalid or expired. We do not know how to verify this, or how to make the trigger work.
 
Categories:
I have the same question (0)
  • Suggested answer
    Adis Profile Picture
    6,597 Super User 2026 Season 1 on at
    Hey,
     
    I am not 100% sure, but could be relevant:
     
    Post | Feed | LinkedIn - please also read the comments for further information.
     
    Basically, you need to deploy the flow again to PROD and the new urls should be triggered.
     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

  • Suggested answer
    Inogic Profile Picture
    748 on at
    Hi,
     
    The error occurs because the HTTP trigger URL contains a SAS token that's environment-specific. When copying the flow to Sandbox, a new URL is generated.
    To fix:
    1. Open the flow in Power Automate (Sandbox).
    2. Copy the new trigger URL after saving the flow.
    3. Update the Ribbon Workbench button with this new URL.
    4. Publish and test.
    Hope this Helps!
     
    Thanks!
    Inogic
  • Suggested answer
    Nimsara Jayathilaka. Profile Picture
    4,950 Super User 2026 Season 1 on at
    The error "authentication credentials are not valid" when calling a Power Automate flow via HTTP request usually indicates the SAS token included in your flow URL is invalid or may have expired. To correct this you need to re-generate the SAS key used by the HTTP trigger in your flow. To re-generate the SAS key: you need to edit the flow in Power Automate and copy the existing HTTP POST URL (with the SAS token), then generate the new SAS token either via API, or via the Power Automate portal. Finally, you must update the URL including the new SAS token used in the Ribbon Workbench. For more specific steps and validation, Microsoft documentation and blog posts provide a clear overview of how to regenerate and validate SAS keys for HTTP based flows to regain secure access.
  • Suggested answer
    Sahan Hasitha Profile Picture
    2,683 on at
    hi
    from one environment (such as Production) into another (such as Sandbox), the system automatically generates a new HTTP trigger URL. Since the SAS token is environment-specific, the original Production URL will not work correctly in Sandbox, resulting in errors.
    To resolve this, you need to update the Sandbox flow with the newly generated URL:
     01. Open the flow in Power Automate within the Sandbox environment.
     02. Make sure to save the flow. Once saved, a new HTTP trigger URL will be generated automatically by the system.
     03. Copy this new trigger URL.
     04. Navigate to the Ribbon Workbench (or wherever you have referenced the flow’s URL). Replace the old Production URL with the new             Sandbox URL.
     05. Publish your changes and perform a test to confirm the flow works as expected.
  • Suggested answer
    Nimsara Jayathilaka. Profile Picture
    4,950 Super User 2026 Season 1 on at
    The "authentication credentials are not valid" error occurs because the SAS token embedded in the HTTP trigger URL might be expired or invalid. To fix this:
    • Regenerate the SAS key by editing the flow in Power Automate and saving the trigger URL again (a new SAS token is generated).
    • Replace the old URL with the updated one in the Ribbon Workbench solution.
    • Verify the "Who can trigger the flow?" option is set to "Anyone."
    • Test the URL again with the new SAS token to confirm it works.
    • If issues persist, check for any OAuth or authentication overlay blocking anonymous requests.
    This ensures the flow URL with a valid SAS token is used for triggering the flow successfully.
     
    Thanks
    Nimsara
  • nelsms Profile Picture
    16 on at

    It looks like there is just 1 request when I filter for api.flow.

    The request url for this request is:

    https://api.flow.microsoft.com/providers/microsoft.processsimple/environments/979cd549-ec74-e668-a3f0-c0b178e85904?api-version=2016-11-01

     

    The request does not start with runs?api-version=, and I don’t know how to select or copy the request url, or the authorization header

    I don’t know how to find the correct request url or the authorization header to copy into the fetch command, and I’m not sure how to run the command.

  • nelsms Profile Picture
    16 on at
    See attachment
     
  • Suggested answer
    Sahan Hasitha Profile Picture
    2,683 on at
    hi
    Step 1 – Check the flow is enabled
    • In Power Automate → My Flows → Sandbox environment → make sure the HTTP-triggered flows are turned on.
     Step 2 – Get the new URL
    • Open the flow in the sandbox.
    • Select the “When an HTTP request is received” trigger step.
    • Copy the new HTTP POST URL (contains the SAS token).
    Step 3 – Update the Ribbon Workbench button
    • Replace the old flow URL in your Ribbon Workbench command with the new sandbox flow URL.
     Step 4 – Test authentication
    • If the trigger is set to Anyone, no authentication is required.
    • If it’s set to Specific users, you’ll need to pass valid OAuth tokens (but from your description, you’re using Anyone, so this is not the case).
    Step 5 – Future-proof
    • If you promote flows often between environments, consider:
      • Storing flow URLs in Dataverse configuration table or environment variable.
      • Updating ribbon commands to pull from that variable, so you only need to update in one place per environment.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 172

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans