Does anyone know if it's possible to pass a dataset to a template parameter in the Template Canvas component?
It's going to be a dataset of just one column with multiple rows. The dataset won't be read from a tag as the dataset will be generated in scripting. But if it can work via a tag then that's fine too.
Have tried a few different syntax but no luck so far...
The data gets mapped to JSON to be passed into the template, because ultimately the customizer is creating a dataset, and Vision's serialization isn't really happy with datasets-inside-datasets, so we don't let you create them outside of scripting where we basically can't prevent you from doing so.
I would probably recommend a different approach entirely. Maybe the template parameter is just a parameter name, and then the template instance uses scripting to retrieve that named parameter from the outer template canvas which gets corresponding custom parameters added to it.