Guidelines

To create a new query, click on the button “Add an item query”.

You'll need to give it a name, and then decide whether you want to inherit it from an existing query or not. Once the query has been created, you are automatically redirected to its details.

Then, you will be able add filters to define the scope of items. There are 3 filters available:

Only indexed features appear in the drop-down list. If you can't find the desired field, please refer to your Onestock contact to have it indexed on your project.

Onestock advices

We advise you to use inheritance to build your queries.

For example, you could start by creating an "items" query, specifying only the language used for your features. If called, this query will return all items. This basic query can be used for orchestration stock queries if you don't restrict your items in specific cases.

Then, you can define the features primarily used for stock exports to the website. In the example below, we've created the items_sfs and items_ckc queries which filter respectively on "active_sfs" and "active_ckc" features

The item request tree would look like this