Click or drag to resize

IScriptingEventsOnCurrentContactFieldChanged Method

FieldName is name of the field being changed. e.g.: 'contact.name' or 'address.city'

Namespace:  SuperOffice.COM.ScriptEvents
Assembly:  Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntax
void OnCurrentContactFieldChanged(
	string fullFieldName
)

Parameters

fullFieldName
Type: SystemString
This gives you the table.fieldname of field that's changed.
Examples

Description

This text may be copied to the notepad, and saved as a *.vbs file.

VB
Sub OnCurrentContactFieldChanged (fieldname)
    if fieldname = "contact.associate_id" then
        set soApnt = database.createappointment
        soApnt.SetDefaults
        soApnt.Description "The owner was changed by: " & currentcontact.associate.fullname
        soApnt.save
    end if
End Sub

See Also