Need to create multiple child records
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you rephrase the question as i dont understand what the issue is.
Youve posted what looks like parameterised .json request payload and you state you want to create 1 application with 2 child records but i dont know what the "application" nor "child records means in this context.
If you remember when describing your issue forum members are not cognizant od your projects functionality or requirements so try and explain what you need from that perspective that will only help.
Ta
Rich
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @VaniV28 ! Did you manage to resolve this on your own?
If you still need help from the community members, please provide more details about your use case as Richie is asking!
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sonya/Richie,
sorry for the late reply. Yes I have resolved the issue.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the update @VaniV28 ! I am glad to hear this🙂
Could you share the solution with the Community? This would be extremely helpful! Thanks.
Sonya Mihaljova
Community and Education Specialist
