I’m attempting to create a new Job record via a RE...
# general
w
I’m attempting to create a new Job record via a REST POST and I get an error like the one below when I send the timeremaining field as “0”.
Copy code
Failed post on resource job: Unable to parse value '0' (String) from the Duration,Duration field (timeremaining). Error code: INVALID_VALUE
I created my POST by pulling an existing job record and modifying the fields that I want to set, so timeremaining just happened to be “0" on the field I pulled. (A side question is why are these duration fields coming out as “0” in the first place). I have several duration fields that this is happening with. How should I be setting Duration fields on a POST to a resource in NS via REST? I’ve tried: “0" “0:00” “00:00" and none worked. Googling did not help.
b
can you set the time remaining in the ui?
w
Haven't tried
b
you want to learn if a field is read only before trying to set it
w
Thanks that's helpful.