Please tell me about getting questions from MS Form API

nano-developers 5 Reputation points
2023-02-14T04:15:57.2166667+00:00

I want to get the question content using the forms API, but I can't get it.

I was able to get the form details, but the questions are empty.

Is it possible for you to tell me the reason?

It seems that the value will probably be returned in question[], but it will be empty.

api/@{variables('TenantID')}/users/@{variables('UserId')}/light/forms('@{variables('FormsID')}')

...
  "tableId": "TF4HOPVJB1HE8UJDUYIB7DPWH1",
  "otherInfo": null,
  "runtimeResponses": null,
  "permissions": [
    
  ],
  "responderPermissions": [
    
  ],
  "status": "Active",
  "category": null,
  "localeInfo": "{\"TimezoneOffset\":540,\"Locale\":\"en-us\",\"TimezoneId\":\"Asia/Tokyo\"}",
  "descriptiveQuestions": [
    
  ],
  "questions": [
    
  ],
  "predefinedResponses": null,
  "fillOutRemainingTime": 0,
  "timedFormStartTime": "0001-01-01T00:00:00Z",
  "distributionInfo": null,
  "id": "xxxxxx",
  "title": "テスト用クイズ",
  "createdDate": "2023-02-02T06:22:39.807Z",
  "modifiedDate": "2023-02-02T08:01:41.993Z",
  "version": "1.0",
  "ownerId": "xxxxxx",
  "ownerTenantId": "xxxxxx",
  "settings": "{\"RequiresUniqueResponse\":false,\"IsAnonymous\":true,\"NotRecordIdentity\":false,\"IsQuizMode\":true,\"ShowGradedResults\":true,\"ManualGradingEnabled\":false}",
  "deserializedSettings": null,
  "softDeleted": 0,
  "thankYouMessage": null,
  "flags": 8,
  "emailReceiptEnabled": null,
  "type": "quiz",
  "meetingId": null,
  "formsInsightsInfo": null,
  "formsProRTTitle": "テスト用クイズ",
  "formsProRTDescription": "APIのテスト用",
  "defaultLanguage": null,
  "dataClassificationLevel": null,
  "localeList": [
    
  ],
...

https://learn.microsoft.com/en-us/connectors/microsoftforms/#actions

Community Center | Not monitored
{count} votes

Your answer

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