I have been really struggling finding a way to build a JSON out of a Thing, where the Thing references a list of other Things. Essentially this is what I want…
Building a JSON of THING A and then sending that JSON to an external endpoint to handle.
{
“Thing A Field 1” : “Thing A Field 1 Value”,
“Thing A Field 2” : “Thing A Field 2 Value”,
“Thing A Field 3 (List of Thing Bs)”:[{“Thing B1 Field 1”:“Thing B1 Field 1 Value”, “Thing B1 Field 2”:“Thing B1 Field 2 Value”,“Thing B1 Field 3 (List of Thing Cs)”:[{…}]}, {“Thing B2 Field 1”:“Thing B2 Field 1 Value”, “Thing B2 Field 2”:“Thing B2 Field 2 Value”,“Thing B2 Field 3 (List of Thing Cs)”:[{…}]}]
}
And then POST this JSON externally using an API connector.
@copilot i got the workflow to work but the referenced items are not in there. The Array is basically empty. It did not build a JSON with the details from the referenced things. Just says
The plugin handles taking a Thing or Things and turning it into a JSON Object or Array. The application of the plugin is on you. If you can reliably reproduce a bug, let us know at plugins@cobubble.com.