 | DataUpdateServiceInsertAddressWork Method |
Inserts a work address.
Namespace:
(Default Namespace)
Assembly:
SeniorSystemsWS (in SeniorSystemsWS.dll) Version: 937.0.0.0 (937.0.0.33)
Syntaxpublic ResultAddress InsertAddressWork(
int entityNo,
AddressWork addr,
string authKey
)
Public Function InsertAddressWork (
entityNo As Integer,
addr As AddressWork,
authKey As String
) As ResultAddress
public:
ResultAddress^ InsertAddressWork(
int entityNo,
AddressWork^ addr,
String^ authKey
)
public function InsertAddressWork(
entityNo : int,
addr : AddressWork,
authKey : String
) : ResultAddress
function InsertAddressWork(entityNo, addr, authKey);
Parameters
- entityNo
- Type: SystemInt32
An entity number (the owner of the address). - addr
- Type: SeniorSystemsWS.EntityAddressWork
The new work address - authKey
- Type: SystemString
Authentication Key obtained from the loginExt method in UserManagementService for a current administrator connection.
Return Value
Type:
ResultAddress
A
ResultAddress object.
Exceptions
Remarks
Success or failure is obtained by checking
ResultAddress.Status.
Additional error information is contained in
ResultAddress.ErrorType.
If successful, the pending address record number can be found in NewAddressNo
The authorization key provided must be linked to an administrator role.
The following are items of note:
- The value in entityNo must reference a parent or constituent.
- AddressCode must be 'Work' or 'Spouse Work'.
- BillCode must be 'Original', 'Copy', or null
See Also