Click or drag to resize

AdministrationClientSelectProgramMembershipFieldValue Method

Returns the Value of the supplied Field for the Program Membership linked to the supplied Card Number.

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

Syntax
C#
public ResultOfstring SelectProgramMembershipFieldValue(
	ManagementGroupRequestOfFieldSearch request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfFieldSearch

Return Value

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

  var fieldSearch = new AdministrationService.FieldSearch(); //Required
  fieldSearch.Card_Number = "21000005"; //Required
  fieldSearch.FieldName = "Field name"; //Required 
  fieldSearch.DefaultValue = string.Empty; //Optional

  request.Value = fieldSearch;

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

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