Question:
I’m trying to call getSubmission but it never returns the submission.
What are you trying to achieve:
I want to get one submission from a form.
What have you already tried:
1 - Following the docs, I just call getSubmission
with the id I received from a webhook as data.submissionId
const response = await wixClient.submissions.getSubmission(submissionId);
And always get:
Error on get submission: Error: {
"message": "Entity not found: UNKNOWN",
"details": {
"applicationError": {
"description": "UNKNOWN",
"code": "NOT_FOUND",
"data": {
"notFound": {
"entityId": "d2a76f20-2a5f-480e-816d-3778339370b1"
}
}
}
}
}
I’m using ApiKeyStrategy like this
const wixClient = createClient({
modules: { submissions },
auth: ApiKeyStrategy({
apiKey: process.env.WIX_API_KEY,
siteId: process.env.WIX_SITE_ID,
}),
});
Where:
- apiKey: Got from Log In to Your Wix Account - Wix.com, starting with
IST.
- siteId: Got a webhook data from
context.metaSiteId
Additional information:
Could you help me please?