Bookshelf Home | Contents | Index | PDF |
Siebel SmartScript Administration Guide > Extending Scripts with Siebel VB and Siebel eScript > Sample Siebel VB and Siebel eScript Methods > Complex BranchingThe following sample code demonstrates complex branching, setting branching activity (and the answer to a question) based on whether a contact existed or a new one was created. The code relies on the preceding sample for data acquisition and database querying. Siebel VB CodeFunction Question_PreBranch (Answer As String) As Integer Dim ContactBC as BusComp ContactBC = GetSaveBusComp Question_PreBranch = ContinueOperation Siebel eScript Codefunction Question_PreBranch (&Answer) ContactBC = GetSaveBusComp (); ContactExists = ContactBC.FirstRecord (); Siebel VB CodeFunction Question_PreLeave() As Integer TheApplication.InvokeMethod "RunSmartScript", "Voicemail Script", "", "ENU", "USD" Siebel eScript CodeTheApplication().InvokeMethod ("RunSmartScript", |
Siebel SmartScript Administration Guide |