> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: getSubmission(submissionId: string) # Method package: wixFormsV2 # Method menu location: wixFormsV2 --> submissions --> getSubmission # Method Link: https://dev.wix.com/docs/velo/apis/wix-forms-v2/submissions/get-submission.md # Method Description: Retrieves a submission by ID. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get a submission (dashboard page code) ```javascript import { submissions } from 'wix-forms.v2'; /* Sample submissionId value: "abb9b5c9-a881-467c-9c34-b9bea43ca5f0" */ export async function myGetSubmissionFunction(submissionId) { try { const submission = await submissions.getSubmission(submissionId); console.log('Success! Submission:', submission); return submission; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: { "formId": "21bcb6c7-02b3-4ed1-b6db-7856094fac03", "namespace": "wix.form_app.form", "status": "CONFIRMED", "submissions": { "last_name": "Doe", "first_name": "John" }, "revision": "4", "submitter": { "applicationId": "151e476a-715e-ec33-db9a-a7ff4d51f70a" }, "seen": true, "_id": "abb9b5c9-a881-467c-9c34-b9bea43ca5f0", "_createdDate": "2023-12-28T12:54:04.652Z", "_updatedDate": "2023-12-28T13:42:24.856Z" } */ ``` ## Get a submission (export from backend code) ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { submissions } from 'wix-forms.v2'; import { elevate } from 'wix-auth'; /* Sample submissionId value: "abb9b5c9-a881-467c-9c34-b9bea43ca5f0" */ export const myGetSubmissionFunction = webMethod(Permissions.Anyone, async (submissionId) => { try { const elevatedGetSubmission = elevate(submissions.getSubmission); const submission = await elevatedGetSubmission(submissionId); console.log('Success! Submission:', submission); return submission; } catch (error) { console.error(error); // Handle the error } }); /* Promise resolves to: { "formId": "21bcb6c7-02b3-4ed1-b6db-7856094fac03", "namespace": "wix.form_app.form", "status": "CONFIRMED", "submissions": { "last_name": "Doe", "first_name": "John" }, "revision": "4", "submitter": { "applicationId": "151e476a-715e-ec33-db9a-a7ff4d51f70a" }, "seen": true, "_id": "abb9b5c9-a881-467c-9c34-b9bea43ca5f0", "_createdDate": "2023-12-28T12:54:04.652Z", "_updatedDate": "2023-12-28T13:42:24.856Z" } */ ``` ---