🙂, How abt updating a custom record -> Name it print logger (its an additional workaround but atleast that'll get your job done )
t
Tyler
12/06/2018, 8:45 PM
@Vaid Sorry, I'm not sure what you mean
v
Vaid
12/06/2018, 8:48 PM
You're trying to log number of times SO print button was clicked & on before load you tried to edit the same SO & save it which gave you an unknown error, so may be you should edit and save a custom record connected to that SO every time context.type === 'print'
Vaid
12/06/2018, 8:49 PM
In theory SO edition should work too , but for whatever reason that is giving you issues - you can always edit and save a child custom record(to maintain a tracker of sorts)
t
Tyler
12/06/2018, 9:07 PM
@Vaid Sorry for the silly question but how would I attach the new custom record to the sales order?
v
Vaid
12/06/2018, 9:11 PM
message has been deleted
Vaid
12/06/2018, 9:12 PM
@Tyler On your custom record, create a field - "Parent SO"
Vaid
12/06/2018, 9:14 PM
When you set SO id in this field it will be visible under SO (although selecting Record is Parent is optional, since you can source the value back to SO any way)
t
Tyler
12/07/2018, 1:48 PM
Ah I see what you mean! I was able to pull this off which has renewed my efforts to update the actual SO itself. Hopefully I can get it to work