(CRM) My Triggered Email is not working!

Hello, and thank you for viewing my question. My page code is below - I’ve been trying to get the triggered email to send for a while now and it just won’t go. I’m not sure where to view to console messages; it’s not showing up in my developer console in preview mode.

Can you please take a look and let me know where I went wrong? ;-;

Much appreciated!

import wixCRM from ‘wix-crm’ ;

$w.onReady( function () {

let firstName = ‘xx’
let lastName = ‘xxx’
let email = ‘xx@gmail.com’

wixCRM.createContact({
“firstName” : firstName,
“lastName” : lastName,
“emails” : [email],
})
.then((contactId) => {
console.log(contactId);
wixCRM.emailContact( ‘triggeredemailID’ , contactId)
.then(() => {
console.log( “Triggered email sent CRM” );
})
. catch ((err) => {
console.log(err);
});
});
});

Are you replacing triggeredemailID with the actual ID of the email?

Yes!