queryLoyaltyImports( )


Creates a query to retrieve a list of loyalty imports.

The queryLoyaltyImports() method builds a query to retrieve a list of imports and returns a LoyaltyImportsQueryBuilder object.

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 LoyaltyImportsQueryBuilder methods onto the query. LoyaltyImportsQueryBuilder methods enable you to sort, filter, and control the results queryLoyaltyImports() returns.

queryLoyaltyImports() runs with these LoyaltyImportsQueryBuilder defaults, which you can override:

  • limit(50)
  • descending("_createdDate")

The methods that are chained to queryLoyaltyImports() are applied in the order they're called. For example, if you apply ascending('status') and then descending('_createdDate'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by the created date.

PROPERTYSUPPORTED FILTERS & SORTING
_createdDateeq(),ne(),exists(),in(),hasSome(),lt(),le(),gt(),ge(),ascending(),descending()
_updatedDateeq(),ne(),exists(),in(),hasSome(),lt(),le(),gt(),ge(),ascending(),descending()
statuseq(),ne(),exists(),in(),hasSome(),ascending(),descending()
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?