Monday, May 20, 2013

A Caveat with "Set Field by Name"

I had a script today where I was trying to set a field using "Set Field by Name". It didn't seem to work.

Turns out I needed to add the name of the table to the field name manually:

"Table::" & $Field Name

the result of which is, of course, "Table::YourField" if $Field Name has "YourField" as the contents.

So remember: SFbN requires the whole name of the field!