Hello, I am attempting to retrieve a list of all t...
# suitetalkapi
a
Hello, I am attempting to retrieve a list of all the Custom Item Fields defined in a Netsuite account using the SuiteTalk SOAP API. I am pretty new to SuiteTalk and SOAP in general so I was wondering if anyone could explain to me how I could go about doing this
m
Are you comfortable with c#?
a
Semi comfortable
m
In C# you would use netsuites WSDL. This is a big xml file provided by netsuite which gives you all the intellisense to making requests
a
I see. Our application is in Javascript unfortunately. Do you have any experience with SuiteTalk in Javascript?
m
Yes
Where to you want to make requests from? A node js app?
a
Yes that would be awesome
m
If you would want to make requests from a node backend i would recommend using a Netsuite restlet with token authentication. This is way easier then SOAP. Basically you would be making regualr REST requests
a
Yeah I tried that but it doesn't look like there's a way to grab all the Custom Item Fields via a RESTlet
😞
m
Ah, i dont think custom fields are a scriptable record
You can try loading an item and mapping through all the fields @Alessandro Vecchi
a
I tried that but was unable to get the names of the custom fields associated with the IDs
i.e.
custitem6
would be
Copy code
{
  key: 'custitem6',
  name: 'Custom Field 6'
}
m
Gotcha
a
Which is what i needed