setEmployeeESSEMailByFilekey() Method

Table of Contents

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

Function

  • Sets (updates) an employee’s ESS email address

Syntax

  • AeXMLBridge.setEmployeeESSEMailByFilekey(Filekey, EMail);

Parameters

  • Integer - employee filekey
  • String - employee email address

Return Value

  • None

Sample Code

C#

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

string emailAddress = “somename@yourcompany.com”;

try
{
ws.setEmployeeESSEMailByFilekey(filekey, emailAddress);
}
catch (Exception ex)
{
MessgeBox.Show(ex.Messge);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
Dim filekey As Integer = 1234
' using employee with filekey 1234

Dim emailAddress As String = “somename@yourcompany.com”

Try
ws.setEmployeeESSEMailByFilekey(filekey, emailAddress)
Catch ex As Exception
MessgeBox.Show(ex.Messge)
End Try

Remarks

Possible Errors

  • Invalid employee filekey
  • Invalid email address

Preferred Method

maintainEmployeeDetail2

Alternate Method

setEmployeeESSEMailByIDNum

getEmployeeESSEMailByIDNum
getEmployeeESSPINByIDNum
setEmployeeESSPINByIDNum
setEmployeeTZByIDNum

Back to Top