【发布时间】: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