BMC Remedy ACD Integration via the C API – opening a Display Only form

How to set open a display only field and set fields using the C API

I had posted a question on the ARSList about how to properly format the C API call for “OpenForm” – we were getting errors using it.

Mark Worley – a fellow poster – was kind enough to send me this example which worked and allowed us to fix the problem


Dim arSession as ARUSER.COMAppObj
Dim arForm as ARUSER.ICOMFormWnd
Dim arField as ARUSER.ICOMField
Dim sessionNumber as Long

Set arSession = New ARUSER.COMAppObj
sessionNumber = arSession.Login(“ARUserID”, “ARUserPassword”,False)

arSession.OpenForm sessionNumber, “ARServer”, “Form Name”, ARSubmit , 1
Set arForm = arSession.GetActiveForm
Set arField = arForm.GetFieldById(999999999)
arField.Value = “Value”
arForm.Submit