Bookshelf Home | Contents | Index | PDF |
Siebel Applications Administration Guide > Configuring the Inbox > Examples of Inbox Triggers > Inbox Trigger Using Server ScriptThis section presents a sample Server Script that calls Inbox methods. This code is entered in the PreWriteRecord statement for the Project business component in Siebel Tools. The purpose of this code is to take data from the project record as well as some required arguments to invoke the Universal Inbox business service under the Initialize method. When the user changes the value of the Status field to For Approval, this eScript code is launched, invoking the Universal Inbox business service and creating an Inbox item based on the parameters specified in the eScript and the Inbox type. function BusComp_PreWriteRecord () if (FldProjectStatus == "For Approval") indata =TheApplication ().NewPropertySet (); // Get the login name of the user // ItemObjectId, ItemType, ItemSubmittedBy, and ItemDescription are the // ItemQueueDuration, ItemPriority, and ItemComments are the |
Siebel Applications Administration Guide | Copyright © 2009, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |