flushEmployeeActivityLog() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Related Methods

Function

  • Clears out (flushes) an employee’s activity log for a specified date range

Syntax

  • AeXMLBridge.flushEmployeeActivityLog(Filekey, Operation, PeriodBegin, PeriodEnd);

Parameters

  • Integer - employee filekey
  • Integer - operation type
  • String - begin date (yyyy-mm-dd format)
  • String - end date (yyyy-mm-dd format)

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int filekey = 1234;  
// using employee 1234

int operation = 1;

string beginDate = DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd");
string endDate = DateTime.Now.ToString("yyyy-MM-dd");
// setting begin and end dates

try
{
ws.flushEmployeeActivityLog(filekey, operation, beginDate, endDate);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Dim filekey As Integer = 1234
' using employee 1234

Dim operation As Integer = 1

Dim beginDate As String = DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd")
' setting begin and end dates
Dim endDate As String = DateTime.Now.ToString("yyyy-MM-dd")

Try
ws.flushEmployeeActivityLog(filekey, operation, beginDate, endDate)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • None

Possible Errors

  • Unable to locate employee with filekey
  • yyyy-mm-dd required (Date supplied in invalid format)

getEmployeeActivityLog

Back to Top