I have a setup where a particular column of a table contains a JSON object that I need to search through. I basically want to go through each row in that table and use JSONpath to filter out results, but I am unsure how to apply that to an appian query of the data. I figure I use JSONpath as an expression in a filter, something like the image below, but I don't know what I would enter for the required 'value' parameter. Is there something like fv!item which is used in foreach loops, but used in query filters that I can use here? Otherwise, if I am going about this all wrong, can someone explain how to use jsonpath within an appian query so I don't have to do something like query everything and filter it afterwards with JSONpath?
Discussion posts and replies are publicly visible
Thanks, that's another option we've been looking into. Haven't gotten it to function yet, but it seems promising at least.
We're using MariaDB. We've been looking into using json_table, but haven't figured out how to get it to work yet. Thanks for the tip.
Are you genuinely constrained in how the data is populated into the DB? For example: the current process that loads the data (as a PK, JKSON blob pair) - could that be expanded to extract the data from the incoming JSON and load into a normalized model that you could then implement as you were initially hoping to do so using standard query entity calls? In short: is there an opportunity to move the problem upstream to the database load process, rather than where you're currently trying to solve it?
I hadn't thought of that. Hmm... In this particular case the json objects are uniform so the table could be set up to take everything in, I suppose. I'd probably need to get permission to do things that way though. I'll take it up with them to see. Thanks for the idea.
I am working on the similar use case, any luck with JSON_TABLE function. I see Appian does not have much to explore but we have some options from DB and Java API which can be useful for this particular use case. Appreciate if you have share any tips / workaround you did for this use case