Search.../

querySubmissionsByNamespace( )

Developer Preview

Creates a query to retrieve a list of submissions.

Description

The querySubmissionsByNamespace() method builds a query to retrieve a list of submissions from the specified namespace and returns a SubmissionsQueryBuilder object.

Note: You can only query submissions from a specified namespace. Use the query filter on the namespace field, otherwise you will receive an error.

The returned object contains the query definition, which is typically used to run the query using the find() method.

You can refine the query by chaining SubmissionsQueryBuilder methods onto the query. SubmissionsQueryBuilder methods enable you to sort, filter, and control the results that querySubmissionsByNamespace() returns.

The following SubmissionsQueryBuilder methods are supported for querySubmissionsByNamespace(). For a full description of the Submissions object, see the object returned for the items property in SubmissionsQueryResult.

PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),in(),ne(),ascending(),descending()
formIdeq(),in(),ne(),ascending(),descending()
namespaceeq(),in(),ne(),ascending(),descending()
statusascending(),descending()
_createdDateascending(),descending()
_updatedDateascending(),descending()
Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Syntax

function querySubmissionsByNamespace(options: QuerySubmissionsByNamespaceOptions): SubmissionsQueryBuilder

querySubmissionsByNamespace Parameters

NAME
TYPE
DESCRIPTION
options
Optional
QuerySubmissionsByNamespaceOptions

Query options.

Returns

Was this helpful?

Query a submission by namespace

Copy Code
1
2
3import { submissions } from 'wix-forms.v2';
4
5 async function querySubmissionsByNamespace() {
6 const { items } = submissions.querySubmissionsByNamespace()
7 .eq("namespace", "wix.form_app.form")
8 .find();
9 }
10