ASP.NET VETtrak API web services
ContentsIndexHome
PreviousUpNext
VT_API.UpdateEmployerContactPrimary Method

Update the primary contact flag for an Employer Contact. 

Returns a TAuthenticate object. 

If the iEmco_Primary parameter contains the value 1, all other contacts for this employer will have their primary flag set to 0. 

In other words, only one (at most) contact can be the primary contact for an employer. 

A token is passed for authentication. If the authentication fails, or other errors occur, the primary contact flag is not updated. The result of the authentication and update is represented by a TAuthenticate object. 

This function has security level "Protected", and can only be accessed by users that have explicitly been granted permission to the API.

C#
[WebMethod(Description = "Updates the primary contact flag for the contact with the specified client code and employer ID to that specified")]
public TAuthenticate UpdateEmployerContactPrimary(string sToken, string sClie_Code, string sEmpl_Identifier, int iEmco_Primary);
Parameters 
Description 
string sToken 
String Token. 
string sClie_Code 
String - Identifier for Client who is the contact. Maximum length 10 characters. 
string sEmpl_Identifier 
Identifier of Employer. 
int iEmco_Primary 
Integer - Valid Primary Contact Flags are:
  • 0 => NOT Primary,
  • 1 => IS Primary. 

TAuthenticate : a TAuthenticate Object containing the result of the update.

Copyright (c) VETtrak 2022. All rights reserved.