Hi, Anyone know how to create a job with REST API ...
# integrations
p
Hi, Anyone know how to create a job with REST API and make the job a child of a parent job? I tried sending in this with the field parent: { "id": "12345" } but get this error
netsuite Invalid Field Value 12345 for the following field: parent
What reasons could there be for this error?
POST URL: <https://7479116-sb1.suitetalk.api.netsuite.com/services/rest/record/v1/job>
Data:
{
"csegcostcode": { "id": "774" },
"companyName": "250721 pf test Design (00)",
"estimatedgrossprofit": 0.0,
"fxRate": 0.0,
"parent": { "id": "250398" },
"percentTimeComplete": 0.0,
"subsidiary": { "id": "1" }
}
Thanks
Nevermind, it appears the error in this case was because there was no customer on the parent job. When I set a customer on the parent job, this child call worked. Really wish there was a better way than trial and error...