Ask a Question

Need to create multiple child records

VaniV28
Occasional Contributor

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

4 REPLIES 4
richie
Community Hero

Hey @VaniV28,

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
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
sonya_m
SmartBear Alumni (Retired)

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

VaniV28
Occasional Contributor

Hi Sonya/Richie,

sorry for the late reply. Yes I have resolved the issue.

sonya_m
SmartBear Alumni (Retired)

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

cancel
Showing results for 
Search instead for 
Did you mean: