Bookshelf Home | Contents | Index | PDF |
Siebel SmartScript Administration Guide > Extending Scripts with Siebel VB and Siebel eScript > Siebel VB and Siebel eScript Sample Code > Sample Code of 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. For sample code that demonstrates data acquisition and database querying, see Sample Code of Finding a Contact. 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 | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |