var custTimeZone = "";
var Input = TheApplication().NewPropertySet();
var Output = TheApplication().NewPropertySet();
var bs;
custTimeZone = this.GetFieldValue("Service Address Timezone");
bs = TheApplication().GetService("AVAYA Time Service");
Input.SetProperty("To Time Zone Id", custTimeZone);
Input.SetProperty("DateTime in Site Time" ,FieldValue);
bs.InvokeMethod("CalculateToSiteTime",Input, Output);
if (!CheckCommitDate(Output.GetProperty("DateTime in UserTime"))) {
sReturnValue = CancelOperation;
}
var Input = TheApplication().NewPropertySet();
var Output = TheApplication().NewPropertySet();
var bs;
custTimeZone = this.GetFieldValue("Service Address Timezone");
bs = TheApplication().GetService("AVAYA Time Service");
Input.SetProperty("To Time Zone Id", custTimeZone);
Input.SetProperty("DateTime in Site Time" ,FieldValue);
bs.InvokeMethod("CalculateToSiteTime",Input, Output);
if (!CheckCommitDate(Output.GetProperty("DateTime in UserTime"))) {
sReturnValue = CancelOperation;
}