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

Attach an existing client to an employer as a new contact. If the client doesn't already exist, it should be added first using AddClient

If the primaryFlag parameter contains the value 1, this new contact will be made the employer's primary contact and all other contacts for this employer will have their primary flag set to 0. 

A token is passed for authentication. If the authentication fails, or other errors occur, the contact is not added. 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 = "Attaches an existing client as a new contact for an employer")]
public TAuthenticate AddContactToEmployer(string token, string clientCode, string employerIdentifier, int primaryFlag);
Parameters 
Description 
string token 
String Token. 
string clientCode 
String - Identifier for Client to attach to the employer as a new contact. Maximum length 10 characters. 
string employerIdentifier 
Identifier of Employer to attach the new contact to. 
int primaryFlag 
Integer - Whether this new contact should be the employer's primary contact. 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.