Accessing an event's attributes in Pinpoint template through front-end using Amplify JS

0

I have an AWS Pinpoint application.

On the web app front-end, I can trigger an event as follows:

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

In Pinpoint, I can create a campaign with an email template to send an email to the user whenever my.event is triggered. I'm able to access the endpoint attributes such as {{User.UserAttributes.GivenName}} or {{Attributes.Preferences.Hats}}.

However, I'm not able to access the event attributes (color, size) in the above example in the email template.

Is there a way to do this?

It seems like you can only filter the events to determine whether the campaign email should be sent (e.g., send only if color==='blue').

I suppose that I could temporarily update the endpoint Attributes before triggering the event, but that is not preferred as it requires an additional call.

aboud
질문됨 2년 전129회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠