Multi-Select in Ontology Actions only returning 1 derived value

Hi folks,

I’m trying to create an action wherein, upon selecting a subset of ‘Employee’ objects in the ‘Assignee’ field, the form returns their respective Employee IDs. This is to establish a correct link in the Ontology to an Employee dataset’s primary key in the back-end, while allowing the user to select an employee’s name instead of their ID on the front-end.

For clarity, the Employee ID field will be hidden to front-end users.

However, when selecting multiple Employee objects, only the employee ID of the first object is automatically returned. To retrieve all IDs, I have to manually click on the field and select all.

How do I rectify this?

Hey! I think you can do this by defining an action that adds a link between Employee and Employer. That way you don’t have to lookup the key and write it back to the dataset to link the two objects

What happens in the form here is that any parameter that get it’s options from an Object set, and the parameter is required, it will autopopulate with the value if there is only one available option to select. Any subsequent updates to the available object set will then not reset that value. Therefore as you select a first Assignee it will update with that one’s Employee ID, and any further selection will not updat ethe Employee ID's. For achieving this I recommend either defining a function that extracts this directly from just the selected assignees, or achieving this through the use of default values instead of relying on the default object set.