ICEMortgageTechnology / developerconnect-dotnet-bindings

43 stars 27 forks source link

Pipeline Cursor #16

Open jvidaurrazaga opened 6 years ago

jvidaurrazaga commented 6 years ago

Here is my code using the nuget and I am getting this error. PipelineRequest: {"summary":"Bad Request","details":"Filter Criteria is not formatted correctly."}

string IncomingGUID = "64c24a74-750c-4ed6-a00e-9082b92ab613";

//Get Loan Folder var loanPipelineApiClient = ApiClientProvider.GetApiClient(_accessToken); var cursorRequest = new LoanPipelineViewContract { Filter = new LoanPipelineFilterContract { Terms = new List() { new LoanPipelineFilterContractTerms { CanonicalName = "Loan.GUID", Value = IncomingGUID, MatchType = "contains" } } }, Fields = new List {"Loan.LoanFolder", "Loan.GUID", "Loan.LastModified"} }; var loans = loanPipelineApiClient.PipelineRequest("1", "randomAccess", null, "0", cursorRequest, "true"); foreach (var loanInfo in loans) { //Since swagger does not support Dictionary directly, we need to cast manually here. var fieldinfo = ((JObject)loanInfo.Fields).ToDictionary(); TmpLoan.LoanFolder = fieldinfo["Loan.LoanFolder"]; }