SOLVED

What should I do how to get the content of email when use webhook?

Go to solution
勝之_新保
Level 2

What should I do how to get the content of email when use webhook?

I want to add the content of email to external databases when we sent mail to the users.

So I found the way to be able to do that in smart campaigns. It is webhook.

Therefore, the configuration is below.

- the trigger is to finish to have send email in smart list.

- set webhook in flow, and add the content of email to external databases.

In this case, what should I do how to get the content of email when use webhook?

Please tell me the way if there are other way without webhook.

Please refer to the attached sample document.

In japanese.

メール送付が完了したタイミングをトリガーにし、その送付した内容を外部データベースへ保存したいです。

スマートキャンペーン内のフローで実行可能そうなのを探すとwebhookでした。

よって構成は以下です。

- スマートリストにメール送付完了を設定

- フローでwebhookを起動し、メール内容を指定したapiにpostして外部データベースに保存

webhookでメールの内容を加える時に、メールの内容はどうやって取得すれば良いでしょうか?

またもしwebhookを使用しなくても実現できるのであればそちらも教えていただきたいです。

イメージを添付しています。

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: What should I do how to get the content of email when use webhook?

You can't access the content of outgoing emails in webhooks.

(The only exception is if you happen to be using a Text/Rich Text {{my.}} token -- but not Velocity token -- to make up the bulk of the email content. But this is rarely the case and the overall answer is: No, you can't do this.)

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: What should I do how to get the content of email when use webhook?

You can't access the content of outgoing emails in webhooks.

(The only exception is if you happen to be using a Text/Rich Text {{my.}} token -- but not Velocity token -- to make up the bulk of the email content. But this is rarely the case and the overall answer is: No, you can't do this.)