I’m needing to know what the method is to retrieve additional non-stock columns from an items page query.
I have a text field that is storing an item id from a different system and need to include that column in the select, but whatever I’ve tried does not work and the API reference does not speak to it other than this…
I can run my query and it will return results fine with just the id and name columns as items…but the moment I add anything else, I can’t get any responses, just errors that my response variable is null.
Here’s my query:
query {
boards (ids: our_board_id){
items_page (limit: 1, query_params: {rules: [{column_id: “text__1”, compare_value: [“’ . $accountid . '”]}], operator: and}) {
cursor
items {
id
name
}
}
}
}
Like I said, that query will return items fine, but this situation is problematic as my source system is allowing item ids that may be the same strings but with a slight variation - for example, one item id might be 000011201OlJ and the second is 000011201Olj …so as far as letters the same but with case not at all and thus are unique.
When I query with say the first value…if I set the limit to 1 to sample for an EXACT match…I can’t get one. It returns as if it’s doing a “like” or case insensitive query.
So…my workaround was to just pull the source system item id from the account structure, then do a compare in my code. It’s more work than we should have to do, but if it fixes it, I can make it work.
Any ideas/suggestions on how to get an additional custom column returned in the items? The custom column api name is text__1.
Thanks in advance.