Siebel Applications Administration Guide > Usage Pattern Tracking > Application Programming Interfaces for Usage Pattern Tracking >

Server Script Application Programming Interface


The server script application programming interface (API) follows:

TheApplication(). TriggerUPTEvent (inputPropSet)

Example code for this API follows:

var uptRecord = TheApplication().NewPropertySet ();

var details = TheApplication ().NewPropertySet ();

uptRecord.SetType("UPT");

uptRecord.SetProperty("Object Type", "Application");

uptRecord.SetProperty("Object Name", "Siebel Universal Agent");

uptRecord.SetProperty("Event Name", "UPTServerScript");

uptRecord.SetProperty("Event Sub name", "Test");

uptRecord.SetProperty("Event Source", "Server Script");

uptRecord.SetProperty("Event Context", "Test UPT");

details.SetType("UPT Details");

details.SetProperty("Detail1", "Test UPT Value1");

details.SetProperty("Detail2", "Test UPT Value2");

uptRecord.AddChild(details);

TheApplication().TriggerUPTEvent(uptRecord)

Information about the input property set follows:

  • The Object Type property is a value of Applet, Application, or BusComp. This default value is Application.
  • The Object Name property is a value that you specify. The default value is the application name from the configuration file.
  • The Event Name property is a value of UPTGeneric, UPTClientScript, or UPTServerScript. The default value is UPTServerScript.
  • The Event SubName property is a value that you specify. You can specify no value.
  • The Event Source property is a value that you specify. The default value is Server Script.
  • The Event Context property is a value that you specify.
Siebel Applications Administration Guide Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.