New to TeamScript, I am trying to set a Binary field (SEND_TO_DOCUMENTUM)to Yes or No based on a single selection of YES.
I wrote the script below, but keep getting an SYNTAX error -- ERR #25 for the SetFieldValue lines.
The DBNAME of the field is SEND_TO_DOCUMENTUM.
Does someone know what I need to do to remove the errors from the script below?
Option Explicit
Dim CurrentRecord, bRetVal, strSystem
If Ext.ShellHasProp("Item") Then
Set CurrentRecord = Shell.Item
bRetVal = CurrentRecord.GetFieldValue("POST_TO_DOC",strSystem)
If strSystem = "YES" Then
CurrentRecord.SetFieldValue("SEND_TO_DOCUMENTUM","Yes")
Else
CurrentRecord.SetFieldValue("SEND_TO_DOCUMENTUM","No")
End If
End If