I'm using LFSO for a project and I'm trying to get a field definition so I can adjust it's properties and add it to a template. In RA, you have the command Field.GetInfo to get a field directly, as below.
FieldInfo fi = Field.GetInfo("Document", mySess);
I can't seem to find anything in LFSO that works the same way. The documentation only discusses getting a field definition after it's been assigned to a template. I can iterate through the collections produced by GetAllTemplateFields and GetAllUnassignedFields until I find the name of the field that I'm looking for, but I'm wondering if there's a more efficient way.
I'm not trying to get the data from a particular field on a particular document. Rather, I'm trying to change and add the field definition to a template definition.