Hello,
How can I turn a Collection into a Table function? I know a Collection is already a table, but how can I dynamically create a Table function based on the contents of a Collection?
Example:
1. My Custom Connector requires Table input (thanks @Mike8!)
Table({name: "temp", units: "F"})2. I have a gallery of potential parameters to pass to the Custom Connetor:

3. Each parameter that is checked gets added to a collection (colSelected)
Collect(colSelected,
{
name: ThisItem.name, units: ThisItem.units
}
)How can I parse colSelected and add the values, in the correct format, to the Table function in the Custom Connector?
I've tried doing a lookup for each parameter, but that errors out with "Internal Server error". I started going down the path of a Switch statement for each parameter ("name" and "units") but that doesn't seem to work either.
Table(
{name:
Switch(
colSelectedParameters.name,
"temp","temp",
"feels_like","feels_like"}
)
)Any ideas?