I'm creating a sales order via suitescript but I'm...
# suitescript
s
I'm creating a sales order via suitescript but I'm getting following error "add atleast one item to create record". And I'm able to create sales order via UI with same valeues in body and item sublist. Item type: sterilized inv item. What could be the reason of this issue?
y
When you create a record from the SuiteScript that time You need to add at least one item into the item sublist because without item we can't create the SO. Therefore, you need to add one item.
s
I have added
And after committing the line i tried to get linecount and it is give value greater then zero still facing this issue
y
Have you used record.save() function. Otherwise check the location & subsidiary.
s
Yes i have checked I'm able to create so with same values via UI
s
Can you share your script?