When user click on Submit in the salesquote then this submit action needs to be captured in the BeforeSave script file
In the sales quote there is a Submit in the Action Menu, so when a user click on the submit button then sales quote approval process triggers and
sales quote saved with Approval status as "In Approval" .
Requirement: Each time user click on the submit of sales quote then we have to record this action and update our BO for further calculation.
Issue: All BO elements in the ActionValidation-Submit script file are accessible but they are read only so can not be modified.
So when you click on the Submit then immediately after submit action event beforesave gets trigger, so we build logic here but issue is that we are not able to segerate this save even, I mean which SAVE is coming from the EXPLICIT save button on the UI or which save being triggered from Submit Action.
Resolution tried: We found only one script for the submit action ActionValidation-Submit script file so we implemented this script but here all BO elements are read only, we can not modify those elements.
Even we are not able to return any variable on the validation submit script. so only we can return true/false that says validation is success or not.
My Question : How to capture the information in the event before save when user click on the submit on the sales quote.
So other than valiation script file is there any other appraoch by which I can acheive this. even in the global variable "this" I also dont find any varaible that is setting as true/false that refers to action triggers on the sales quote.