【问题标题】:Accessing an event's atttributes in AWS Pinpoint Campaign email template在 AWS Pinpoint 活动电子邮件模板中访问事件的属性
【发布时间】:2022-08-21 20:08:46
【问题描述】:

我有一个 AWS Pinpoint 应用程序。

在 web 应用程序前端,我可以触发一个事件,如下所示:

       await record(\'my.event\', {
         attributes: { color: \'red\', size: \'large\' },
         immediate: true
       })

在 Pinpoint 中,我可以使用电子邮件模板创建一个活动,以便在触发 my.event 时向用户发送电子邮件。我能够访问端点属性,例如{{User.UserAttributes.GivenName}}{{Attributes.Preferences.Hats}}

但是,我无法访问电子邮件模板中上述示例中的事件属性 (color, size)。

有没有办法做到这一点?

似乎您只能过滤事件以确定是否应发送活动电子邮件(例如,仅在 color===\'blue\' 时发送)。

我想我可以在触发事件之前临时更新端点属性,但这不是首选,因为它需要额外的调用。

    标签: amazon-web-services aws-pinpoint


    【解决方案1】:

    我不完全确定,但我认为接受的属性值必须是列表,例如 color: ["red"]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-04
      • 1970-01-01
      相关资源
      最近更新 更多