Hello,
for a customer, we are currently working towards implementing processes to market events.
The customer uses a custom event portal that we have connected to D365 via an API. In order to receive the customers registrations, we want to start a customer journey that sends out registration links via email. On click on a link received via the email, the customer should be directed to the custom event website, where she/he and the marketed event is already identified and she/he can accept or decline the event invite.
To achieve this, we have implemted functionality in the system that will precreate registrations for contacts in a marketing list for a specific event. These registrations will have the status 'Invited'. Once the customer clicks 'Accept' or 'Decline' in the process described beforehand, the status will be triggered to change to 'Accepted'/'Declined' on the precreated registrations.
We precreate the registrations to get a unique ID that we can send in the email to the contacts within the registration link, so that the custom event portal is able to identify the contact and the event without a login.
Now, we want to send this link as a first step of a customer journey and then trigger further email sending based on the reaction that we get from contacts (accept/decline on the registration records).
To reference the ID in the marketing email, we have to retrieve the correct registration because we have a one-to-many relationship from contact to registrations. At the moment we try to achieve this by adding a codesnippet within the HTML of the marketing email.
{{#each contact.msevtmgt_sessionregistration_contact_msevtmgt_contactid}}
{{#if (eq this.msevtmgt_event '894077a7-2c9e-e911-81b3-005056877b93')}} <ahref="eventsportal.contoso.org/fname={{contact.firstname}}&lname={{contact.lastname}}&id={{this.pdg_eventportalregistrationid}}">Link zur Anmeldung</a>
eventsportal.contoso.org/fname={{contact.firstname}}&lname={{contact.lastname}}&id={{this.pdg_eventportalregistrationid}}
{{/if}}
{{/each}}
In this snippet you are able to change the ID of the event in the HTML code in order to have the right registration retrieved for the customer journey. This will, however, lead to bad UX for the customer. Thus, we're looking into having a tile within the customer journey be able to receive an event ID by adding an event to the lookup in the properties of the tile instead of hardcoding it in the HTML.
What would be the best way to be able to let the customer choose an event (to get the ID) within the customer journey and reference it when retrieving the correct registration within the marketing email or is this even possible? Or do you see other solution approaches to tackle the probem while at the same time achieve a reasonable UX?
Thank you for your help!