These methods are described in the documentation, ...
# suitescript
d
These methods are described in the documentation, but the error reports this isn't a function and the JS files in WebStorm for suitescript modules don't have any keyword hits. Are these real?
Copy code
record.executeMacro({id: enums.Macro.AOM });
    currentRecord.executeMacro({id: enums.Macro.AOM });
b
they exist. but tend to have exotic conditions when they are available
generally related to when the button appears
👍 1
i dont recognize AOM
d
Advanced Order Management, it’s their module that takes care of line level location assignment of item inventory on sales orders, we use it to split orders between up to three locations when we can’t avoid it.
b
that should be autoAssignLocations
if you can see the button in the ui, you should be able to use it in the currentRecord
d
I have an enums file of constants setup, so that string is called. It’a a shame it’s only useful for users would love to use in a M/R but will probably end up making something to assign line items without it now.
It’s pay per use :(