Forum Discussion

Natkinson's avatar
Natkinson
Genius
4 years ago

Trying to use occasion_data.status

I have a simple liql query where I'm pulling in all upcoming and ongoing (in progress) events. According to this doc there should be an object for occasion_data.status in the results. It's working within my query "WHERE occasion_data.status IN ('upcoming','ongoing')" but I get a null value if I try to use it in my FreeMarker template (e.g., <#assign eventStatus = listItems.occasion_data.status/>)

Anyone know why? Did they miss adding this? Am I reading the doc wrong? Is my code incorrect somewhere?

13 Replies

  • MattV 

    was it fixed?

    I ran the API code and don't get occasion_data.status results.

  • Natkinson's avatar
    Natkinson
    Genius
    4 years ago

    irach15 no it hasn't been resolved. I put in a support ticket and engineering said it's working as intended, that 'status' can be used as a constraint but can't be selected or returned as part of the query. However, I also requested back in July that they update their LiQL dev docs to note this and this still hasn't been updated, it still shows that 'status' is a valid selectable field for this collection.

  • RyanPi's avatar
    RyanPi
    Khoros Staff
    4 years ago

    It appears that the changes to the documentation were made and reverted during a version update. I have removed status as a selectable field. My apologies for the oversight.