- Newest
- Most votes
- Most comments
Hi,
Thanks for your patience as we worked with the Pinpoint team regarding your query. The service team have confirmed that this behavior is expected. It is expected to either have a template substitution or message-level substitution, but not both. They also mention that email behaves differently due to historical reasons
The service team also mentions the following:
For the part about the documentation regarding overriding default:
Substitutions -> (map)
The default message variables to use in the notification message. You can override these default variables with individual address variables.
It is probably easier to see that in the send-message doc: https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html.
The individual address variables means the address configuration here: https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messages-prop-messagerequest-addresses
OR the endpoint configuration here: https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messages-prop-messagerequest-endpoints
For the send-user-message, it means the individual endpoint configuration in the user part here: https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-users-messages.html#apps-application-id-users-messages-prop-sendusersmessagerequest-users
Relevant content
- asked 9 months ago
- asked 4 months ago
- asked 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- How do I set up logging for Amazon Pinpoint voice messages for Amazon Pinpoint SMS and Voice v1 API?AWS OFFICIALUpdated 2 years ago
Thanks for letting me know. It's unfortunate that SMS works this way, the behavior of email templates is more useful. It lets you specify values when you want, but still have generic default fallbacks in the template for graceful failure. But good to know I'm not doing something wrong, we can perhaps implement defaults in code.