protected Record[] GetLookUp(GetAllRecordType recordType) { GetAllRecord record = new GetAllRecord(); record.recordTypeSpecified = true; record.recordType = recordType; GetAllResult gr = new GetAllResult(); gr = Service(true).getAll(record); return(gr.recordList); }
public virtual async System.Threading.Tasks.Task <GetAllResult> getAllAsync(GetAllRecord record) { var request = new getAllRequest() { passport = passport, tokenPassport = tokenPassport, applicationInfo = applicationInfo, partnerInfo = partnerInfo, preferences = preferences, record = record, }; var response = await((NetSuitePortType)this).getAllAsync(request); return(response.getAllResult); }
public static void FillCache() { GetAllRecord getAllStates = new GetAllRecord(); getAllStates.recordType = GetAllRecordType.state; getAllStates.recordTypeSpecified = true; GetAllResult stateResult = _service.getAll(getAllStates); Record[] stateRecords = stateResult.recordList; if (stateResult.status.isSuccess) { foreach (State state in stateRecords) { Cache[state.fullName.ToUpper()] = state.shortname; } } // and some code to do the rest of the web service calls until you have all results. }
/// <summary> /// Invokes NetSuite's getAll(..) method. /// </summary> /// <param name="gar">The filter criteria for the retrieved data.</param> /// <returns>Response from the WebService.</returns> public virtual GetAllResult GetAll(GetAllRecord gar) { return(InvokeService <GetAllResult>(gar, "getAll")); }