- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-24-2023 09:38 AM
I'm trying to addcolumn with a field from a JSON configuration, but only if certain condition of another field is satisfied.
Something like this:
config from cloud.resource where api.name = 'aws-api-xyzl' CONDITIONS addcolumn $.list[ if CONDITIION_FIELD equals 12345)].FIELD_OF_INTEREST
I already tryed the filter syntax used in JSON.RULES assertion, but it didn't work:
config from cloud.resource where api.name = 'aws-api-xzyl' CONDITION addcolumn $.list[?any(FIELD_FOR_CONDITION == CONDITION)].FIELD_OF_INTERERST
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!