Is it possible to remove access to reallocate item...
# administration
l
Is it possible to remove access to reallocate items page without removing access to create or edit sales orders?
c
Maybe you can prevent access to the page via a beforeLoad script
l
That might work...let me take a look
s
Reallocate items page isn't a record type, don't believe you can script on top of it
l
Related to this topic, how would I be able to track who used reallocation and the transaction/items where reallocation took place?
s
Don't think its trackable.
l
😭
c
You can script on reallocate items
I have a project which utilizes a beforeSubmit script to prevent reallocating away from specific work orders
@Lalo you should be able to log the user and the details of the reallocate items process using Suitescript to achieve the tracking you require. You might need to create a custom record to do so, or store the logs in the File Cabinet / email them.
l
Thanks @Clay Roper. I'm going to give it a try and update you guys.
c
Good luck! For the logging part, you should be able to make use of
context.newRecord
and
runtime
to get the data you need.