LoginSignup
1
3

More than 1 year has passed since last update.

PowerAutomateでSharePointにファイルを格納する

Last updated at Posted at 2023-01-04

概要

PowerAutomateで手動トリガーを使用して、SharePointにファイルを格納する際の備忘録です。
また今回は同じファイルをアップしても、ファイル名が重複しないようguid関数を使用してファイル名を自動生成させてます。(テストする際に何回もアップロードする際など、とても便利です。)

やること

  1. 手動トリガーを使用してファイルを選択・インポート
  2. 選択・インポートしたファイルをSharePoint上に格納

PowerAutomate完成イメージ

PowerAutomate_sharepoint_import.png

手順

  1. トリガー
    1. 「手動でフローをトリガーします」を選択
    2. 入力を追加で、「ファイル」を選択
  2. ステップ1:SharePoint
    1. 「ファイルの作成」を選択
    2. サイトアドレス:格納したい「チーム」を選択
    3. フォルダのパス:格納したい「フォルダ」を選択(※1)
    4. ファイル名:適当(※2,3)
    5. ファイルコンテンツ:トリガー起動時にインポートした「ファイルコンテンツ」を選択

※1:今回はチャンネル1の直下
※2:今回はファイル名に「guid()」を用いて、自動生成している。
※3:ファイル名の例:concat(guid(), '.xlsx')

1
3
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
1
3