How to send a transactional email to multiple users based on a single trigger? i.e. a user creates a record, now inform all other system users?

  • 23 September 2021
  • 2 replies
  • 61 views

Scenario: if a user creates a record in our application, and we create an event trigger via API, can we leverage transactional emails to notify all other users (based on this trigger) that the record has been created? Many thanks in advance.


2 replies

Userlevel 1
Badge

Hello @tom p​ ,

 

Can you share a bit more about your use case here?

 

It's possible if you trigger the following event for other users as well but first share a bit more about your use case.

 

Looking forward.

Hi @roy s11​ ,

 

Yes - we have an application that's used to track our customer's assets. We'd like to make sure that when a customer user creates a new asset in that system, that the broader customer user base is aware of this. Specifically, when our application triggers the event - we want Intercom to send out (on behalf of the application / automated user) an email notifying all ~100 other users across that customer, with details of the asset including Name, Description and Image, as well as a link to that asset within the system (deep link).

 

Currently, we're leveraging the intercom API to create the event and provide the event metadata, but we've been unable to create an event that get's sent to multiple users, or beyond the user that created the event. Our initial workaround was to create an event for every user in scope (and have our application figure out that scope), but there must be something better to manage this via Intercom (whereby we provide the event / trigger and the audience who should receive a message), and intercom carries out the rest.

 

Thanks.

Reply