Learn SIEBEL-SCRIPTS with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Siebel VB Script Example (Applet PreWriteRecord Event)
Function Applet_PreWriteRecord()
If Me.FieldValue("Status") = "Closed" Then
If IsEmpty(Me.FieldValue("Resolution")) Then
RaiseErrorText("Resolution must be provided before closing record.")
End If
End If
End Function
A Siebel VB script that validates a field before record save.
2
Siebel eScript Example (BusComp_PreSetFieldValue Event)
function BusComp_PreSetFieldValue (FieldName, FieldValue)
{
if (FieldName == "Priority" && FieldValue == "High")
{
TheApplication().RaiseErrorText("High priority not allowed for this record type.");
}
return (ContinueOperation);
}
A Siebel eScript snippet that enforces a rule before setting a field value.