addAccessAccount() 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

  • Used to add a new access account (user) to the client’s database

Syntax

  • AeAccessAccount = AeXMLBridge.addAccessAccount(AeAccessAccount);

Parameters

Return Value

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TAeAccessAccount acct = new TAeAccessAccount();

// substitute the next 3 fields with your values
acct.AccountCode = "ABC123";
acct.FriendlyName = "John Doe";
// operators full name in first then last name format
acct.Password = "xxxxxx";

string[] strAry = ws.getBrowserProfilesSimple();
// use this to retrieve a list of Browser Profiles if needed

acct.BrowserProfile = strAry[0];

try
{
acct = ws.addAccessAccount(acct);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Dim acct As TAeAccessAccount = New TAeAccessAccount()

' substitute the next 3 fields with your values
acct.AccountCode = "ABC123"
acct.FriendlyName = "John Doe"
' operators full name in first then last name format
acct.Password = "xxxxxx"

Dim strAry As String() = ws.getBrowserProfilesSimple()
' use this to retrieve a list of Browser Profiles if needed

acct.BrowserProfile = strAry(0)

Try
acct = ws.addAccessAccount(acct)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • You can use the getBrowserProfilesSimple method to retrieve Browser Profiles
  • AccountCode, FriendlyName, Password and BrowserProfile are required

Possible Errors

  • Access Account Code May not Be Blank
  • Access Account Browser Profile May not be Blank
  • Unknown Browser Profile
  • Access Account Friendly Name may not be blank
  • Access Account Password Must be at least 6 characters

accessAccountCodeExists
addAccessAccountWorkgroupAccessRightByAccountCode
editAccessAccount
getAccessAccounts
getAccessAccountViaAccountCode
getAccessAccountViaUniqueID
getAccessAccountWorkgroupAccessRightsByAccountCode
getCurrentAccessAccount
getEmptyAccessAccount
loadAccessAccountActivitysInRange
removeAccessAccount
removeAccessAccountAllWorkgroupAccessRightsByAccountCode

Back to Top