Skip to main content

Filter query for released items

Comments

1 comment

  • Zendesk API User
    Author: pavone - 1/16/2014 9:01

    Hello,

    you could try this:

    Open your query and select the tab "Conditions". At the top, uncheck "Wizard mode" so you see the actual query code. Then wrap your conditions with an AND-tag and add the following line:

    <NOTNULL attribute="released by"/>

    So your query looks like something like this

    <QUERY entityType="products">

      <FILTERPARAM parameter="category_id" datatype="java.lang.Integer" value="123"/>

      <AND>

        <EQ attribute="product_categories.fs_id" parameter="category_id"/>

        <NOTNULL attribute="RELEASED_BY"/>

      </AND>

    </QUERY>

    This will exclude all items which have not been released. But it will also exclude items that had been released and then were changed without being released again! You will NOT get the released version of the item.

    Best regards

    Tim

    0

Please sign in to leave a comment.