Skip to main content
OCLC Support

AddToAuthorityFile

Find the syntax, use, parameters, return values, and an example for the AddToAuthorityFile macro command in Connexion client.
Syntax BOOL = CS.AddToAuthorityFile
Use to Add an authority record, or records selected in an online or local authority list, to the Authority File
Or
When offline, marks local record(s) for batch add.

Same as using the Action > Add to Authority File menu command.
Parameters None
Return values
  • You must be logged on to run this macro immediately. When offline, marks local save file record(s) ready for batch processing (R).
  • You must be an authorized NACO participant to use this command.
Example Sub Main()

     Dim CS As Object
     Dim bResult As Integer

     Set CS = GetObject(,“Connex.Client”)

     If CS.IsOnline = False Then
          CS.Logon ““, ““, ““
     End If

     CS.Search “AS”, “sf:12”

     bResult = CS.AddToAuthorityFile

     If bResult = True Then
          MsgBox “Record successfully added to the Authority File”
     Else
          MsgBox “Record not added to the Authority File”
     End If
End Sub

What this example does
  • Logs on to Connexion if not already logged on, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches the online authority save file for save file record number 12, which is an authority workform.
  • Adds the record to the Authority File.
  • If successful, returns the message: Record successfully added to the Authority File. If not, returns the message: Record not added to the Authority File.