Hi!
There are two main types of parameters that can be in a list of avalable fields:
- BuiltInParameters
- Project Parameters
BuiltInParameter Id can be obtained like this:
>>> ElementId(DB.BuiltInParameter.SHEET_NAME)
<Autodesk.Revit.DB.ElementId object at 0x000000000000002B [-1007400]>
Project parameter Id can be accessed either through ParameterBindings property or with FilteredElementCollector of class ParameterElement:
>>> iterator = doc.ParameterBindings.ForwardIterator()
>>> while iterator.MoveNext():
... print iterator.Key.Name, iterator.Key.Id
Occupant 26010
Hinge Set 217757
...
>>> for element in DB.FilteredElementCollector(doc).OfClass(DB.ParameterElement):
... print element.Name, element.Id
Occupant 26010
Hinge Set 217757
...
After you get necessary parameter Ids you can use them to create TableCellCombinedParameterData objects and pass them to SetNamingRule method of PDFExportOptions class.

Maxim Stepannikov | Architect, BIM Manager, Instructor