0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

PowerAppsとPowerAutomateでメール下書きを保存する

Posted at

背景

メールをいきなり送るのではなくまずは下書きに保存してチェックしてから送信したいケースで、本文にリッチテキスト形式(HTML)を受け渡す際にハマりました。結論からいうと、PowerAppsからPowerAutomateへ本文文字列を受け渡す際、本文(HTML)内のダブルコーテーションをシングルコーテーションに変換してから受け渡せばOKでした。

詳細

PowerAppsからPowerAutomateフローへ本文データを受け渡す際、PowerApps側で下記式で文字列変換しておく。

Substitute(RichTextEditor.HtmlText,"""","'")

文字列として「”」を指定したい時は「""」と書く。

その後PowerAutomateで下記のHTTP要求で下書きが作成される。
キャプチャ.JPG

所感

理屈は分かりませんが、解決策が見つかって良かったです。。。
あれこれ試してみるもんだ。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?