Model builder inline variable use for field name in Select by Attributes

256
0
12-18-2023 10:09 AM
Labels (2)
BillParco
New Contributor

I have a model that currently does the following:

  1. Iterates through feature classes in a Dataset
  2. Checks each for a specific field (FEEDERID) 
  3. Creates a Feature Layer for each class that has FEEDERID

I then want to feed those Feature layers into a Select by Attributes tool and then a Calculate Field for features selected. My problem is the data I am working with is joined to another table that contains a field used in the query so I want to pass the Name value from the iterator as the Fieldname

EX: "Iterator Name Value.FEEDERID" IS NULL AND "Iterator Name Value_FM.SubfeederID" IS NOT NULL 

I've tried %Name%, '/%Name%/' and I just can't seem to get it. All docs show using it as the value in an expression or as the naming convention for outputs so I wanted to see if this was even possible?

BillParco_0-1702922779410.png

 

Tags (1)
0 Kudos
0 Replies