This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Upserts contact from submission.
function upsertContactFromSubmission(
submissionId: string,
options: UpsertContactFromSubmissionOptions,
): Promise<UpsertContactFromSubmissionResponse>;
Submission from which contact needs to be upserted.
import { submissions } from "wix-forms.v2";
async function upsertContactFromSubmission(submissionId, options) {
try {
const result = await submissions.upsertContactFromSubmission(
submissionId,
options,
);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.