setEmployeeESSEMailByIDNum() 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.setEmployeeESSEMailByIDNum(IDNum, EMail);

Parameters

  • String - employee ID
  • String - employee email address

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
string empID = "1234";                                                            
// using employee with ID 1234

string emailAddress = “somename@yourcompany.com”;

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

VB.Net

1
2
3
4
5
6
7
8
9
10
Dim empID As String = "1234"
' using employee with ID 1234

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

Try
ws.setEmployeeESSEMailByIDNum(empID, emailAddress)
Catch ex As Exception
MessgeBox.Show(ex.Messge)
End Try

Remarks

Possible Errors

  • Invalid employee ID
  • Invalid email address

Preferred Method

maintainEmployeeDetail2

Alternate Method

setEmployeeESSEMailByFilekey

getEmployeeESSEMailByIDNum
getEmployeeESSPINByIDNum
setEmployeeESSPINByIDNum
setEmployeeTZByIDNum

Back to Top