Is it possible to implement a global search in Workshop that searches across multiple object sets simultaneously?
I have a Workshop module with multiple tabs (Leads, Opportunities, Companies, Contacts, Events, Tasks), each containing different object types. All these object types implement a common Interface with shared properties like ID, Created At, and Created By.
I want a single search bar at the top that returns results from all object types at once. However, I can’t find an option to select Interface when creating Object Set variables or configuring the Object Dropdown widget.
What’s the recommended approach? Should I create a custom TypeScript Function?
Thank you
Hi Roushan
Thanks for your questions, super interesting stuff.
From the top of my head I would approach this by using a workshop custom widget
I would pass all your object sets into the custom widget as a parameter and create your desired UI / search logic inside the custom widget.
Please let me know if you would like some further clarification
1 Like
Hello Roushan,
It is possible to create an object set variable that is a union of multiple object types: Create Variable → Object Set → Combine with another object set. Then it is possible to define filters on the variable as usual and display it as a table.
Let me know if something is unclear/doesn’t work.
With kindest regards
2 Likes
Hi @nikita-sibyl,
Thanks again for the solution, it worked perfectly for us.
I have one more question. After creating the union variable, I added it to an Object Table widget. The issue is that when I select objects from different object sets, everything gets stored in the same variable.
Now I want to trigger different conditional events depending on which object type is selected. Since the union includes multiple object types, I’m not sure what the best way is to distinguish between them and handle the logic separately.
Would appreciate your guidance on this.
Thanks again!
Hey,
It is possible to create an object set filter variable and define a default filter that specifies the object type but does not filter properties (see screenshot).
Then you can define an object set variable that filters the selected object set using this variable filter, which you can then use to define is empty/is not empty/other conditionals.
Do let me know if that’s not what you wanted or if you have additional questions.
With kindest regards
1 Like
Hi @nikita-sibyl
Thank you so much. It worked perfectly.