I have a custom signup/login page that creates a custom user database as well as creating the wix.users login credentials.
I setup up Wix Automations and activated the default: Welcome Your New Members. In the setup I changed the action from “Send email to visitors” to “Get Notified”. I also added multiple email addresses to the officers of the organization.
Here is the code that creates the wix user and the custom user database entries from our custom Sign Up form:
export function SaveToDB() {
let firstName;
let lastName;
wixUsers.register(EmailAdd, PasswordAdd, {
contactInfo: {
“firstName”: Fname,
“lastName”: Sname,
“emails”: [EmailAdd],
“phones”: [Phnum]
}})
.then((result) => {
let toSave = {
“email”: EmailAdd,
“fname”: Fname,
“middle”: Mname,
“lname”: Sname,
“address1”: Add1,
“address2”: Add2,
“city”: City,
“state”: State,
“zip”: Zip,
“country”: Country,
“phone”: Phnum,
“paymentAmount”: payString,
“mem_status”: memberStatus,
“payment_info”: PaymentMethod + " - " + payString,
“expires”: endDate,
“region”: stateRegion
}
wixData.save(“CVOA_Members”, toSave)
.then((results) => {
let item = results;
sendTrigEmail();
})
. catch ((err) => {
let errorMsg = err;
$w(“#image34”).hide();
$w(“#text178”).text = errorMsg;
$w(“#text178”).show();
});
})
Note: the sendTrigEmail notifies the new member. This works just fine.
But, while the wix Automation that notifies the rest of us DOES work, the notification contains NO data? Here is a screenshot of a new member from 6:29 this evening:
The New User WAS successfully created in the wix.users Membership showing his First Name, Last Name and Email Address. The custom CVOA_Members record was also created.
Is this a bug?