Calling service via Things["ThingName"] works, but direct dependency reference causes error
Hi everyone,
I have two ThingWorx projects that depend on each other. Both i want to import as packages into our server.
I noticed the following behavior:
When I reference the Thing dynamically like this, it works without any issue means package is created:
const Controller = "thingName;
Things[Controller ].serviceOne({
id: 234,
state: "complete",
});
However, when I try to use the dependency more directly (e.g., referencing it statically without the intermediate variable), I get an error while packaging for dependency.
Things[thingName].serviceOne({
id: 234,
state: "complete",
});
My questions:
-
Is there a recommended way to handle cross-project Thing references?
Any insights or best practices would be appreciated.
Thanks in advance!

