Creating a RESTlet to consume a BOM Revision. I'm ...
# suitescript
r
Creating a RESTlet to consume a BOM Revision. I'm getting
Missing required field: billofmaterials
. Any thoughts on what the issue might be?
I'm just setting it using an internal ID, seem pretty straightforward. Wondering if there are any gotchas / limitations I'm not considering.
m
Most likely your bom value is null for some reason when you go to set it on the bomRevision. Check to make sure you're actually getting a value from the requestBody['billofmaterials']
r
nope it's a valid internalid
🙌 1
m
Actually, in your setValue you have detaisl: bom. should be value: bom
r
ohhh been coding too long with a break. thanks
s
or use NFT and you don't ever think about such rubbish mistakes 🙂