I am trying to get the file names of files in a collection that were created with Document Generation. I am looking at the file with the ‘Query JSON’ action, but am only able to parse the first level. To get the value of an object 3 levels down in the structure, I have to use 3 ‘Query JSON’ actions. Is this how it’s supposed to work?
Solved
Can only query the initial level of a JSON structure
Best answer by bsikes
I’ve also been annoyed with how/when NWC escapes things...
As you found, the collection returned by the Doc Gen action is a collection of strings, which are valid JSON strings once their un-escaped. That’s why you can’t query passed the initial collection layer.
But, when you say that $.blob.fileName doesn’t return anything, is that when you’re using the full collection of files from the doc gen action, or just the specific item in that collection returned by $[0]? $.blob.fileName works for me when I’m doing it on the single item returned by $[0]


Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.