LoginSignup
5
1

More than 1 year has passed since last update.

Power Automate (無償) で Forms API を使って Forms の情報を取得する

Last updated at Posted at 2021-08-27

なんの為に?

Forms の結果を取得する際、吐き出されるExcel を元に現在の回答結果を見る方法があります。
が、取得するのが結構面倒ですよね。

そんな時に、Forms API を利用して回答結果を分析することが出来ますよ、というお話です。
しかも、無償で。

Forms の Actions は、今後増えてくるだろうけど、現状は以下のみ

image.png

今回の肝

以下に API まとめ

Forms API 情報

公式Documentsもまだ・・

Facebook の投稿内容は以下

https://forms.office.com/formapi/api//users//light/forms('')
responseをつけると回答内容も取得できます。
https://forms.office.com/formapi/api//users//light/forms('')/responses

概要

  1. Tenant ID は、list-my-environments で Default Environment から取得
  2. User ID は、office365users などで取得
  3. Form ID は、Forms の Trigger か、APIで取得とか
  4. Responses API で回答取得

Tenant ID

⇒ Power Automate で Tenant ID を取得する

Responses API で回答取得

SiteAddress
https://forms.office.com/formapi
Uri
api/@{variables('TenantID')}/users/@{variables('UserId')}/light/forms('@{variables('FormsID')}')/responses

image.png

search for

How to use Forms API on Power Automate

あとがき

Graph API もこんな感じで使えるようにならんものか :laughing:

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1