Unable to Reference Newly Created Object in 'Create Link' Rule in Ontology Manager Action Type

I’m having a issue with an action form. I am configuring an action type in Ontology Manager to allow users to create a shipment and link it to another object type called Project via a dropdown. Both object types have already been created and populated as well as their link type via a many-to-many join table (so not a direct property like a foreign key).

I set up a “Create object” rule for Shipment and then a “Create link” rule following that for the Shipment-to-Project link. But the issue is that in the “Create link” rule configuration, there is no UI option to reference the Shipment object just created in the “Create object” rule as the source for the link. The UI only allows me to select parameters exposed to the form, not the output of the previous rule. As a result, I cannot configure the action to create and link the Shipment in a single form submission without requiring the user to select a Shipment (which does not exist yet).

Am I missing something here? Is there a way to specify in the parameters that the specific shipment object should be the newly created one?

The annoying thing is that the docs specifically refer to this situation (https://www.palantir.com/docs/foundry/action-types/rules#creating-an-object–many-to-many-link) but just don’t give actual detail to how it’s done.

Hey!

Hopping it’s not to late to help you.
When you add a new rule after an object creation action, this new rule will take the created object by default.

If you want an example, here is the context: I setup a many-to-many link between two object types: Test and Log.

Then, I created a basic action to create a new Test object and added a second rule to create the many-to-many link.

And, as you can see on the screen bellow, the destination parameter is automatically set to “primary_key from Test”. Where Test is my newly create object.

If you now open the form preview, you’ll only see the field to choose the object to link, but because it’s actually an object creation action, it’s already based on the created object.

I hope you find this helpful. Feel free to ask if you have any question.

Nathan :slight_smile: