Hello,
I’m trying to create an http-function to send a triggered email to a customer contact, not a member. The input I have is the contacts email address. Can someone please point me in the direction of the correct API to use to do this?
I have the code to send the triggered email, the only thing I’m missing is how to get the Id of the contact to send it to.
let ContactID = ??? HOW DO I GET THIS?
wixCrmBackend.emailContact(form, contactID)
.then ( () => {
console.log("Triggered email sent");
})
.catch( (err) => {
console.log(err);
});