Creates a query to retrieve a list of submissions.
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.
| PROPERTY | SUPPORTED FILTERS & SORTING |
|---|---|
_id | ascending(),descending() |
formId | ascending(),descending() |
namespace | eq() |
status | ascending(),descending() |
_createdDate | ascending(),descending() |
_updatedDate | ascending(),descending() |
submitter.memberId | ascending(),descending() |
submitter.visitorId | ascending(),descending() |
submitter.applicationId | ascending(),descending() |
submitter.userId | ascending(),descending() |
seen | ascending(),descending() |
orderDetails.checkoutId | ascending(),descending() |
contactId | ascending(),descending() |
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
Query options.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.