AdministrationClientSelectCustomerAccountFieldValue Method |
Returns the Value of the supplied Field for the Customer Account linked to the supplied Card and Customer Account ID.
Will return the supplied Default Value if the Field is empty.
public ResultOfstring SelectCustomerAccountFieldValue( ManagementGroupRequestOfCustomerAccountFieldSearch request )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfCustomerAccountFieldSearch(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin var customerAccountFieldSearch = new AdministrationService.CustomerAccountFieldSearch(); customerAccountFieldSearch.Card_Number = "Card number"; //Required customerAccountFieldSearch.CustomerAccount_Category = "Customer account category"; //Required customerAccountFieldSearch.CustomerAccount_ID = "Customer account ID"; //Required customerAccountFieldSearch.FieldName = "Field name"; //Required customerAccountFieldSearch.DefaultValue = string.Empty; //Optional request.Value = customerAccountFieldSearch; AdministrationService.ResultOfstring result = svc.SelectCustomerAccountFieldValue(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }