I need to load Item details thru restlet, i will get only id of the item, is there any way to load or search the item without knowing the record type

i need to load item details thru reslet is there any way to load for example

if record type is lotnumberedinventoryitem, I will get only id of the item , I have to load  the record based on ID,

using SS 2.0

Rookie Asked on June 30, 2021 in SuiteScript.
Add Comment
1 Answer(s)

Do an item search using N/search and get the value of the Result.recordType. You can also use search.lookupFields to lookup the recordtype column if you are only searching for one item.

Intermediate Answered on June 30, 2021.

thankyou battk , but i used this search

var srchResults = search.create({
‘type’: ‘item’,
‘filters’: [{
name: ‘internalid’,
operator: search.Operator.IS,
values: number
}],
‘columns’: [‘internalid’]
}).run();

 

 

it’s working

on July 1, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor