1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PowerApps|SharePoint既定の保存ボタンが意図せずフローを起動する問題

1
Posted at

どういう構成のときに起きるか

PowerAutomateのフローで、
トリガー:「アイテムが作成または変更されたとき」
となっている場合

なぜ起きるか

SharePoint の既定の保存ボタンを押す
→ リストのアイテムが保存(作成 or 更新)される
→ Power Automate のトリガー「アイテムが作成または変更されたとき」が反応
→ フローが発火
PowerAutomate側のトリガーの設定で設定もできるかとは思うが、ここではPowerApps側での設定にした。

PowerApps でフォームをカスタマイズしても、カスタマイズ対象外のSharePoint 既定の保存ボタンはデフォルトで残り続ける。
誤ってそちらを押すと、意図しないタイミングでフローが発火してしまう。

対処

SharePointIntegration.OnSave を false に設定する。
これで既定の保存ボタンを押しても保存自体が発生しなくなり、フローも起動しなくなる。
ただ、これは、フォームカスタマイズ画面で、デフォルトの保存ボタンとは別に、「メール送信」や「保存」などボタンを追加していることが前提となる。

// SharePointIntegration の OnSave プロパティ
false

メモ

「保存もされない」点に注意。PowerApps 側に独自の保存ボタンを用意して、SubmitForm() と合わせて制御するのがベター。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?