Hi Guys how to update item in single request on th...
# suitescript
m
Hi Guys how to update item in single request on the basis of itemid/name in RESTlet
n
run a search based on those details, use the returned internalid to load the item record, amend as you wish then save. (simple view based on what you've asked)
t
and if the fields are inline editable, use submit fields instead of loading/saving the record.
n
^^ still going to need the internalid of the item
t
sorry If I wasn't clear, modified the statement.
m
Thanks @NElliott @tuli, Thanks for your response, I want to do this in one request, I have 14K items and I want to update all the items on the basis of ItemId/Name. for single request its taking 2-3 seconds but for double request it will be 5 seconds so it will took 20 Hours to complete this task.
t
you should try something else, like a mass update or csv import. I think you are stuck with this from a day or two. it might be okay to let it go the long way. At least this will be done. Break that in chunks and process. Good time to process would be, when there is less traffic. Also if you find any efficient way of doing, do share.
n
If you really need to send these in via a RESTlet you may want to look at it kicking off a Map/Reduce. Another option could be to generate a CSV from your sent in data and run one or more csv import tasks. It really does depend on the functionality you are looking for. Or you could spool the data to a custom record and have a user event update the item based on the custom record. There's plenty of ways to approach this some more appropriate than others but again, will depend on your expectation/requirement.