missing something? can't seem to set the title fie...
# suitescript
m
missing something? can't seem to set the title field on a case record - complains with the below error. Passing data with postman: {"data":[{" "company":"193170", "title":"This is a Test"}]}
Copy code
name: "INVALID_FLD_VALUE",
   message: "Field must contain a value.",
b
do the basic step of hardcoding the title
m
entering into my catch block with: Catch Block: {"type":"error.SuiteScriptError","name":"UNEXPECTED_ERROR","message":null,"stack":["an
i just harded coded all the values and i was able to create the case so that would mean my json data is the issue...
p
There’s an extra “ before “company”
m
{"data":[{"customform":"119","company":"193170","title":"This is a Test"}]}
still an invalid field value for title
j
You're JSON above doesn't seem to match your restlet_data object. I would think if restlet_data is that JSON you would get the title via restlet_data.data[0].title
m
Copy code
that's my current code. Json: {"data":[{"customform":"119","company":"193170","title":"This is a Test"}]}
j
Copy code
var case_data = restlet_data.data[0];
Change line 2
m
that work, thanks very much.