Thanks so much again @kazurayam I looked at it again with a fresh sets of eyes this morning and figured out my mistake Feel so silly, I had to go into one more layer to get that value. The response was so huge and I was looking at it as this huge text after parsing, I missed the indents for these 2 fields. I had to change the path to the fields and then I was able to get the field values.
println WS.getElementPropertyValue(ResponseGetAgreementbyAuthID, ‘result.student.plaidStatus’)
println WS.getElementPropertyValue(ResponseGetAgreementbyAuthID, ‘result.quizAttempt.result’)
Again I am posting only part of the response.
def jsonText = ResponseGetAgreementbyAuthID.getContentText()
result:[[vemoContractNumber:1000023193, totalFullyAllocatedAmountDue:null, submittedDateTime:null, studentPrimarySchoolStudentId:AutoID_2233, studentName:John L Lynch II, studentID:0016C00000ViFJ2QAN, studentEmail:firstname.lastname@example.org, student:[updatePlaidPassword:false, timeZone:null, suffix:II, studentID:0016C00000ViFJ2QAN, studentCampusServiceEmail:email@example.com, street:1402 Comfort St, stateCode:MI, state:Michigan, ssnTaxID:*--6112, schoolProgramOfStudyID:null, schoolEntryPoint:testautomation, salutation:null, residency:US Citizen, primarySchoolStudentID:AutoID_2233, primarySchoolName:Test Automation School, primarySchoolID:0016C00000SrSLDQA3, primarySchoolGraduationDate:null, primarySchoolGradeLevel:null, primarySchoolEnrollmentStatus:null, primarySchoolEmail:null, preferredName:JohnLynch2233, preferredMethodOfCommunication:null, postalCode:48915, portalUsername:firstname.lastname@example.org, portalPreferences:null, plaidStatus:Linked, otherStreet:456 Main St, otherStateCode:AL, otherState:Alabama, otherPostalCode:24455, otherCountry:United States, otherCity:Hell, mobilePhone:+1 (878) 656-5443, middleName:L, lastName:Lynch, isBouncedEmail:false, homePhone:5435768787, firstName:John, email:email@example.com, dueDayOfTheMonth:1, driversLicenseOrStateID:null, doNotText:false, doNotEmail:false, doNotCall:false, cumulativeIncomeShareCap:20.0000, cumulativeIncomeShare:10.0000, credit:null, country:United States, commonLineID:null, city:Lansing, birthdate:1994-09-01, autoPaymentFrequency:null, autoPaymentDayOfMonth2:null, autoPaymentDayOfMonth1:null, autoPaymentDateActivated:null, autoPayment:false, authSystemUserID:auth0|603fad8ccf80a40069a8ad8a, alternateServicingPhoneNumber:null, alternateServicingEmail:firstname.lastname@example.org, alternateEmail:email@example.com, accountNumber:10026120], stateOfResidenceStudent:AL, stateOfResidencePreCertification:null, stateOfResidencePostCertification:AL, stateOfResidenceCertification:null, signingURL:https://secure.na3.adobesign.com/public/apiesign?pid=CBFCIBAA3AAABLblqZhBs4g2QxiDYt1HtAdp5r6pih-NvG6kjXjigFyO_Do-B6QSiK5uCnIcyChmwYXZkSf4*, signedAgreementURL:https://vemo--qa--c.documentforce.com/servlet/servlet.FileDownload?file=00P6C000007gIr7UAE, signedAgreementID:00P6C000007gIr7UAE, servicingStartDate:null, servicing:false, schoolStudentID:null, schoolProgramOfStudyID:null, schoolID:0016C00000SrSLDQA3, rightToCancelDate:2021-03-09, residencyStudent:US Citizen, residencyPreCertification:null, residencyPostCertification:US Citizen, residencyCertification:null, residency:null, requestedAmount:null, remainingTerm:16, registrationExceptionProcess:null, quizState:pass, quizResponseLink:null, quizLocked:false, quizAttempts:null, quizAttempt:[[submitTime:2021-03-03T15:40:24.964Z, startTime:2021-03-03T15:40:14.474Z, resultLink:https://surveyjs.io/Service/SurveyResults/bcce39fd-83a9-4bfb-9c99-b483cb6f900a, result:PASS, quizResponses:[[quizAttemptID:a1Z6C000000eKiZUAU, questionText:What is an ISA?, questionID:question1, fFQuizResponseID:a1a6C000000TzaQQAS, correctAnswer:true, answerText:A contract between you and your school, answerID:item2], [quizAttemptID:a1Z6C000000eKiZUAU, questionText:How is your monthly payment amount calculated?, questionID:question2, fFQuizResponseID:a1a6C000000TzaRQAS, correctAnswer:true, answerText:Gross Monthly Earned Income multiplied by the Income Share Percentage, answerID:item3], [quizAttemptID:a1Z6C000000eKiZUAU, questionText:Who determines the maximum amount of ISA funding you are eligible to receive?, questionID:question3, fFQuizResponseID:a1a6C000000TzaSQAS, correctAnswer:true, answerText:Your School, answerID:item3], [quizAttemptID:a1Z6C000000eKiZUAU, questionText:When can you cancel your ISA contract without penalty?, questionID:question4, fFQuizResponseID:a1a6C000000TzaTQAS, correctAnswer:true, answerText:During the cancellation period only, answerID:item3], [quizAttemptID:a1Z6C000000eKiZUAU, questionText:What is an income share?, questionID:question5, fFQuizResponseID:a1a6C000000TzaUQAS, correctAnswer:true, answerText:The percent of your gross monthly earned income that you will pay during your payment term, answerID:item1], [quizAttemptID:a1Z6C000000eKiZUAU, questionText:Payments are due on your ISA when you earn less than the minimum income requirement., questionID:question6, fFQuizResponseID:a1a6C000000TzaVQAS, correctAnswer:true, answerText:False, answerID:item2], [quizAttemptID:a1Z6C000000eKiZUAU, questionText:If you elect to pay off your ISA contract early, how much will you pay?, questionID:question7, fFQuizResponseID:a1a6C000000TzaWQAS, correctAnswer:true, answerText:The payment cap, answerID:item1], [quizAttemptID:a1Z6C000000eKiZUAU, questionText:You are required to provide income documentation to Vemo Education., questionID:question8, fFQuizResponseID:a1a6C000000TzaXQAS, correctAnswer:true, answerText:True, answerID:item1]], fFQuizAttemptID:a1Z6C000000eKiZUAU, contractID:a0p6C00000048uFQAQ, clientID:a0p6C00000048uFQAQ-at1, attemptOrder:1]], programNotes:null, programName:Program - PreCertify All Pages, programID:a0n6C000001P4QIQA0, program:[totalDefermentMonths:48, templates:, stipendDisbursements:false, schoolStudentIDRequired:false, schoolProgramOfStudyRequired:true, schoolProgramOfStudyCollected:true, schoolID:0016C00000SrSLDQA3, schoolCampusServiceName:Mitch Finer, schoolCampusServiceMobile:813 724 3411 ext 116, schoolCampusServiceEmail:firstname.lastname@example.org, schoolCampusServiceAvailability:Monday - Friday 8am - 8pm ET, rightToCancelDays:3, residencyRequired:true, residencyCollected:true, registrationEndDate:2022-12-31, registrationBeginDate:2020-07-01, quizResultID:fd05d315-e482-49d3-bb1e-843b0184238a, quizPostID:e0ec9d90-154c-4080-bf4e-db8d93e0d3b5, quizLinkURL:null, quizLinkID:bcce39fd-83a9-4bfb-9c99-b483cb6f900a, quizAttemptsBeforeLock:2, programStatus:Open, programNotes:null, programName:Program - PreCertify All Pages, programID:a0n6C000001P4QIQA0, minimumIncomePerMonth:3333.34, instructionText:
To be eligible for funding, you must:
So sorry to have wasted your time, but cannot thank you enough for taking the time to look at this and actually trying to recreate the issue I was having. And you were so right about wanting to see the response, you would have caught it immediately.
Another question on this - I tried the code you initially suggested hoping that it would print out the response in a more readable way. But I got errors using it. any idea on what I am doing wrong?