Click or drag to resize

IScriptingEventsOnCurrentSaleSaved Method

Called when an existing object is saved after having been changed.

Namespace:  SuperOffice.COM.ScriptEvents
Assembly:  Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntax
void OnCurrentSaleSaved()
Examples

Description

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

VB
sub OnCurrentSaleSaved
' add a follow up
    set soApnt = database.createappointment
    soApnt.SetDefaults
    soApnt.contact = currentcontact
          soApnt.task = database.GetListItemByName(67, "Sale followup")
          soApnt.DoBy = DateAdd("d", 1, Now())
          soApnt.Description = "A sale was saved yesterday, do you need to follow it up today?"
          soApnt.Save
end sub

See Also