IScriptingEventsOnCurrentDocumentSaved Method |
Namespace: SuperOffice.COM.ScriptEvents
Description
This text may be copied to the notepad, and saved as a *.vbs file.
Sub OnCurrentDocumentSaved If CurrentDocument.Template.Text = "Offer" Then Set myApnt = Database.CreateAppointment myApnt.SetDefaultsToDo myApnt.Contact = CurrentContact myApnt.Description = "A new offer was created on this contact, you need to ...." myApnt.Save End If End Sub