Plant.Plant not found?

In a C# block I was trying to bring in a reference to our active plant to use some custom fields in the directive and I get this message:

Had to do a sanity check in a BAQ… not sure if maybe I’m referencing these tables incorrectly, I’ve always used this LINQ structure for pulling them in before…

image
image

Any ideas what Plant.Plant should really be called?

Use plant.Plant1

This is common where the field name matches the table name. (i.e., company.Company1)

You can hit Ctrl-Spacebar to get intellisense on the variable:
image

4 Likes

Oh cool, didn’t know about the intellisense feature! Thanks much!