John Posted October 9, 2019 Report Share Posted October 9, 2019 Hi, I'm trying to filter assetversion using custom attribute, but got an error: As you can see when I inspect the custom_attributes of a version object it did show me the "downstream" attribute is there. Did I miss something? Also, how to compare a bool value? Am I using it right? Cheers, John Link to comment Share on other sites More sharing options...
Julian Martinz Posted October 9, 2019 Report Share Posted October 9, 2019 Hi there, you have to specify key, value pairs if you want to query custom attributes and metadata. The right syntax is s.query('AssetVersion where custom_attributes any (key=downstream and value=True)').first() Also notice that bools are written in upper case. So true won't work as value. John 1 Link to comment Share on other sites More sharing options...
John Posted October 10, 2019 Author Report Share Posted October 10, 2019 Thanks Julian! It works now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now