Power Automate - Form API Sharepoint HTTP Request fail

Anonymous
2024-09-27T01:33:47+00:00

Hi

I using SharePoint HTTP request to call Microsoft Form API to Open and Close Form Since Jan.2024 but since 20 Sep. 2024 the flow show error and other similar flow now not work. Error as follow.

{ "statusCode": 400,"headers": {"Cache-Control": "no-store, no-cache","Pragma": "no-cache","Set-Cookie": "","Strict-Transport-Security": "","x-ms-request-id": "","X-Content-Type-Options": "","X-Frame-Options": "DENY","x-ms-tenant-id": "xxxxxxxxxxxxxxxxxxxx","Timing-Allow-Origin": "*","x-ms-apihub-cached-response": "false","x-ms-apihub-obo": "false","Date": "Fri, 20 Sep 2024 10:05:10 GMT","Content-Length": "277","Content-Type": "application/json","Expires": "-1"},"body": {"status": 400,"message": "Unexpected response from the service\r\nclientRequestId: ","error": {"message": "Unexpected response from the service"},"source": ""}}

Microsoft 365 and Office | Microsoft Forms | For business

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

18 answers

Sort by: Most helpful
  1. Anonymous
    2024-10-03T05:26:49+00:00

    Dear All,

    Thanks for your updates.

    It seems that the related team are working on the tickets and further investigating on the issue with some of you as you are still experiencing the similar issues when using the Send HTTP to SharePoint connector in Power Automate to get the Forms data with API.

    I understand the urgency of the issue and it may affect the automation of your work process in your environments. I'd like try my best to help you before you get the final result from the related team.

    Currently I'd like to provide another workaround here for you to give a try and see if it works in your environments.

    As another way for the Forms data with API in Power Automate, you may try the HTTP connector (Premium) in Power Automate to see whether you can call the Forms API to see the result in your environment.

    You may need to first register the app which can call the Forms API in Microsoft Entra (Azure AD). Add the Microsoft Forms permissions to the app and grant the admin consent by clicking on API permissions like the following.

    Now select Certificates and secrets to create the secrets value and copy and paste it to Notepad. Otherwise it will be invisible later.

    After pasting all parameters such as Tenant ID, User ID, App ID (Client ID) and Secrets Value, now go to the HTTP connector and fill in all required parameters.

    I call https://forms.office.com/formapi/api/**tenantid**/users/**userid**/forms('**formid**')/responses as a test in HTTP.

    Image

    Result:

    Image

    Using the HTTP action to make requests with Microsoft Flow - Microsoft Power Platform Blog

    Quickstart: Register an app in the Microsoft identity platform - Microsoft identity platform | Microsoft Learn

    Thank you for your effort and time.

    Sincerely

    Cliff | Microsoft Community Moderator

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-10-20T11:41:51+00:00

    Is there a way to do this without getting the secret?

    0 comments No comments
  3. Anonymous
    2024-10-22T05:23:18+00:00

    Dear Apsvcacct,

    To use Active Directory OAuth with the registered app in the HTTP connector, you need to get the Secret value.

    Thank you for your effort and time.

    Sincerely

    Cliff | Microsoft Community Moderator

    0 comments No comments
  4. Anonymous
    2024-10-28T18:38:31+00:00

    How do I register the app, I am very new at this.

    0 comments No comments
  5. Anonymous
    2024-10-29T07:09:18+00:00

    Dear Apsvcacct,

    You can follow the steps in the article below.

    Quickstart: Register an app in the Microsoft identity platform - Microsoft identity platform | Microsoft Learn

    Thank you for your effort and time.

    Sincerely

    Cliff | Microsoft Community Moderator

    0 comments No comments