RE: How to get custom fields with type as multiple select from item table ?

url=https://0000-sb1.suitetalk.api.netsuite.com/services/rest/query/v1/suiteql

data={

“q”:”SELECT id,custitem_psgss_material FROM Item”

}

response=

{
    “type”: “https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1”,
    “title”: “An unexpected error occurred. Error ID: kekvvbn61c2gsn1zfeq7e”,
    “status”: 500,
    “o:errorCode”: “UNEXPECTED_ERROR”
}
rishikeshdevkate Rookie Asked on September 1, 2020 in SuiteTalk.
Add Comment
3 Answers
Best answer

Hello,

It’s because the field has no header name on it since its a custom one. Therefore, you must set an alias on it before calling it directly to the table.

 

{
"q": "SELECT id, custitem_psgss_material as pggs_materials FROM Item"
}

 

Rookie Answered on September 9, 2020.

Great

Thanks.

 

on September 9, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.