Faiz Byputra
Faiz Byputra

Reputation: 48

How to see fields and sublists needed to create a transaction in NetSuite via RESTlet?

I am trying to create an Inventory Adjustment via RESTlet so another application could create the adjustment.

I don't have any idea what the field should be. It always returns some error I don't know about.

"Please enter value(s) for: Department, Adjustment Location"

I already provide value for department (lower case d)

"You have entered an Invalid Field Value 1 for the following field: postingperiod"

I have tried to use strings (the fields name) and numbers (the internal ID of the field). The error disappear when I give empty string instead

I have tried to log the fields (getFields()) and sublists (getSublists()) to see what I should provide in the payload body. But it prints out very different field than it actually need.

How can I know the fields and sublists needed to create a transaction? Thanks in advance

Upvotes: 0

Views: 23

Answers (1)

bknights
bknights

Reputation: 15447

You can get all the record and field scripting ids via the Records Browser

It is at a url like:

https://nnnnnnnn.app.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2024_2/script/record/inventoryadjustment.html

The path to the link is via your NetSuite help:

SuiteCloud Platform / SuiteCloud Supported Records /

Upvotes: 1

Related Questions