Click or drag to resize

AdministrationClientSelectMemberFieldValue Method

Returns the Value of the supplied Field for the Member linked to the supplied Card and Member Type.

Will return the supplied Default Value if the Field is empty.

Syntax
C#
public ResultOfstring SelectMemberFieldValue(
	ManagementGroupRequestOfMemberFieldSearch request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfMemberFieldSearch

Return Value

Type: ResultOfstring
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfMemberFieldSearch();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var memberFieldSearch = new AdministrationService.MemberFieldSearch();
  memberFieldSearch.Card_Number = "21000005"; //Required
  memberFieldSearch.DefaultValue = string.Empty; //Optional
  memberFieldSearch.FieldName = "Field name";//Required
  memberFieldSearch.Member_Type = "Person"; //Required - valid values are : 'Person' or 'Organisation',

  request.Value = memberFieldSearch;

  AdministrationService.ResultOfstring result = svc.SelectMemberFieldValue(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed          
    throw new Exception(result.FaultDescription);
  }
}
See Also