Void setValue(String field, String value)
Sets a named field to the given value. Look up names in the reference section down below, or check out the class reference.Both parameters are strings! Remember to use quotes even for IDs.You must call
save() after setting all applicable values to actually create or update the customer.Void removeEmail(String email)
Removes the email address from the customer.You must call
save() to do the action.Integer save()
Saves a new or updated customer and returns its ID.- If the ID is set before calling
save(), it’s an update. - If the ID is empty, it’s a create.
Integer save(String p_gdprSourceKey)
A variant ofsave() that includes the source key for the StoreAndProcess consent. These keys can be found in the consent system.
Reference
Frequently used values
Connected persons
For a complete list of fields, see the database reference.