Need to create multiple child records
Hi,
I 'm trying to create an application with 2 child records (decisions)
example
Application A with 2 child records (decision id 1 and decision id 2)
I'm using following in the Post request.
{
"ctrCd" : "${#TestCase#ctrCd}",
"eqId" : "${#TestCase#eqId}",
"aimsNumber" : "${#TestCase#aimsNumber}",
"currentCtrCd" : "${#TestCase#currentCtrCd}",
"proposedCtrCd" : "${#TestCase#proposedCtrCd}",
"applicationStatusId" : "${#TestCase#applicationStatusId}",
"evidenceSummary": "***Evidence Summary from the API***",
"currentOwner" : "${#TestCase#currentOwner}",
"decisionList":
[
{
"decisionCategoryId": ${#TestCase#decisionCategoryId5},
"disabilityFg": ${#TestCase#disabilityFg5},
"severeDisabilityFg": ${#TestCase#severeDisabilityFg5},
"disabilityVerifiedFg": ${#TestCase#disabilityVerifiedFg5},
"requireSpecialEducationFg": ${#TestCase#requireSpecialEducationFg5},
"requireSpecialSchoolFg": ${#TestCase#requireSpecialSchoolFg5},
"isSchoolSuitableFg": ${#TestCase#isSchoolSuitableFg5},
"decisionTypeId": ${#TestCase#decisionTypeId5},
"refusalReason": "${#TestCase#refusalReason5}",
"isNew": ${#TestCase#isNew5}
"decisionCategoryId": ${#TestCase#decisionCategoryId6},
"disabilityFg": ${#TestCase#disabilityFg6},
"severeDisabilityFg": ${#TestCase#severeDisabilityFg6},
"disabilityVerifiedFg": ${#TestCase#disabilityVerifiedFg6},
"requireSpecialEducationFg": ${#TestCase#requireSpecialEducationFg6},
"requireSpecialSchoolFg": ${#TestCase#requireSpecialSchoolFg6},
"isSchoolSuitableFg": ${#TestCase#isSchoolSuitableFg6},
"decisionTypeId": ${#TestCase#decisionTypeId6},
"refusalReason": "${#TestCase#refusalReason6}",
"isNew": ${#TestCase#isNew6}
}
]
}
I'm a newbie so any help would be very much appreciated
Thanks