queryReviewRequests( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a query to retrieve a list of review requests.

The queryReviewRequests() function builds a query to retrieve a list of review requests and returns a ReviewRequestsQueryBuilder object.

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

You can refine the query by chaining ReviewRequestsQueryBuilder functions onto the query. ReviewRequestsQueryBuilder functions enable you to sort, filter, and control the results that queryReviewRequests() returns.

queryReviewRequests() runs with the following ReviewRequestsBuilder default that you can override:

  • ascending("_createdDate")

The functions that are chained to queryReviewRequests() are applied in the order they are called. For example, if you apply in("items.catalogItemId") and then ("requestedBy.appId"), the results are sorted first by the "items.catalogItem", and then, if there are multiple results with the same "items.catalogItem", the items are sorted by "appId".

The following ReviewRequestsQueryBuilder functions are supported for the queryReviewRequests() function. For a full description of the review request object, see the object returned for the items property in ReviewRequestsQueryResult.

PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),ne(),in()
_createdDateeq(),ne(),gt(),ge(),lt(),le(),in(),ascending(),descending()
sendDateeq(),ne(),gt(),ge(),lt(),le(),in(),ascending(),descending()
namespaceeq(),ne(),in()
order.ideq(),ne(),in(),exists()
items.catalogItemIdeq(),ne(),in()
items.reviewIdeq(),ne(),in(),exists()
recipient.contactIdeq(),ne(),in()
communicationChanneleq(),ne(),in()
statuseq(),ne(),in(),ascending(),descending()
automationActivationIdeq(),ne(),in(),exists()
requestedBy.wixUserIdeq(),ne(),in()
requestedBy.appIdeq(),ne(),in()
requestedBy.identityTypeeq(),ne(),in()
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Review Requests
Read Review Requests
Learn more about app permissions.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?