if (!requestNumber) { throw "ERROR: Request Number is not supplied to getRequestByRequestNumber_OData action"; } var filter = new Array(); filter.push(vCACCAFEFilterParam.equal("requestNumber", vCACCAFEFilterParam.string(requestNumber))); var query = vCACCAFEOdataQuery.query().addFilter(filter); var odataRequest = new vCACCAFEPageOdataRequest(1, 10000, query); var service = cafeHost.createCatalogClient().getCatalogConsumerRequestService(); var allRequests = service.getRequests(odataRequest); //return type = org.springframework.data.domain.Page if (allRequests) { //System.log("Number of Requests="+allRequests.getTotalPages().toString()); return allRequests.getContent()[0]; } throw "WARNING: No Request found under this request number."; return null;
Get vRA request by ID
by
Tags:
Leave a Reply