Hi!
I'm trying to send an email on a CustomEvent which should pass variables to the email template. So far, I've been able to make my event send the email and print certain variables, but no luck on the custom properties I sent.
Here's my custom event code :
handlers.testCustomEvent = (args, context) => { server.WritePlayerEvent({ Body: { CustomKey: "test" }, EventName : "test_custom_event", PlayFabId: context.playerProfile.PlayerId, }); }
When I see the event in the PlayStream Monitor, I see the CustomKey property in my event, but alas cannot use it in my email template when I try to do this :
$Event.CustomKey$
Is there another way to do it / a doc? So far I've seen this https://community.playfab.com/questions/20962/how-can-you-pass-data-to-custom-email-templates-wh.html which lets me think I should be able to do what I want, but it doesn't seem to work.
Thank you!