Automates and Ontology links on project-scoped mode: How to import?

Hello! We are running into issues when automates run an action that includes some sort of object traversal within the function. If we do something like

function getFlightAirplane(flight: Flight): string{

const plane = flight.plane.get()

return plane.id

We get failures in automatic execution because the link seems to be outside of the scope of the automate/project.

If we do something like (pseudo code):

function getFlightAirplane(flight: Flight): string{

const plane = Objects.search().plane().filter(p => p.id.exactMatch(flight.planeId)).all().at(0)

return plane.id

it seems to work, but I end up just keeping the automate user scoped so it executes as me. How can I import the links manually into the automate? Is this lack of awareness that a link is needed a product limitation?

Hi Pedro,

Just to double check - is the plane object type available in the project?