Hello! has anybody managed to commit inventory it...
# general
m
Hello! has anybody managed to commit inventory item programmatically by using Suitescript? Something like what is done by page "Reallocate Items". It seems that many people tried different ways but all unsuccessful. Can anybody help me? Thanks in advance!
b
official answer is Reallocate Items
m
Thanks battk. But this is using UI. I need to reallocate automatically on a User Event script.
b
convince me that you have read the contents of that link
m
It was my starting point and it gave me hope this morning when I started working on this. But then I stopped when I read "The reallocate items record can only be copied and searched. It cannot be created, updated, or deleted using scripts." Maybe I am just not understanding how it should be used.
b
the official answer is whats there, not supported
the unofficial answer is that suitescript 2 allows you to create the record anyways
expect to use dynamic mode and use the debugger when starting out so you can see the warnings
m
Ok. Thanks!!!
Thank you battk for your help. I managed to get it working but it was not so straight.
The official help says that reallocateitem is "searchable" but it itsn't
It took a while to understand that I have to set the sublist values to get it working. How did you find out that the Official help was not telling the truth?
b
there is a difference between not supported and works
dont expect netsuite support to help when things go wrong
m
Yes. I know. But Netsuite should say the truth. That object does not work the way they describe
b
other than that, netsuite has a supported list of records they use for their client side validation and reallocateitem is in that list
m
funny 😉
Thanks, Thanks a lot. Do you know if there is any SuiteIdeas or Enhancement on this topic? I think it is unacceptable that a such expensive product as Netsuite has problems like this...
b
i wouldnt expect so
support can usually better answer that question
m
Thank you, again!!! I'll ask them. Goodnight (here in Italy it is 8PM) 😉 I think that anyway I'll post my solution on Netsuite Professional for anybody looking for this in the future.