I'm using modelbuilder to import a dbf (selected by the user) to a geodatabase and turn it into a feature class for further processing.
I would like to be able to populate a field in the imported table with the original file name of the source data.
This is section of my model where it imports the dbf (named Input Rows by the model) and adds the field but I can't find a way of capturing the input file name to use in Field Calculator
Edit: I've looked at this, but it seems to be talking about adding a field based on the feature class/shape file name. My table will have a generic name, I want to be able to use the name of the file that is being selected to populate it.
The geodatabase is a template that will be re-used by lots of users in different locations with differently named dbfs.