Multi-type object sets in Functions

In workshop, we can use multi type object views to get multi type object sets.

I have a workflow where I need custom logic to go through all of this in a function (python / typescript / etc). How can I pass in and process this multi type object set in a functions repo, tried looking but couldn’t think of anything

Is the combination of object types going to be the same always?

TypeScript v1 functions don’t have a generic typing value where you can pass in accepted object types. What you could do is if your object set variable contains up to N different object types, do the following:

A) from Workshop, create N new object set variables. These each should have a starting object set value of the expected respective object types. Then “combine with another object set” and use your multi-OT object set variable (set it to Intersect). This will isolate however many objects of each of the N object types are included.

B) in your TypeScript function, pass in at least N arguments, each representing the respective object types. You may end up listing all of these at the end of the function signature and as optional depending on your workflow (ie how the multi-OT object set variable is populated)

1 Like