is it possible to get a script to trigger the pres...
# suitescript
t
is it possible to get a script to trigger the pressing of a button on an SO or similar page and retrieve the data the button click would return? like a ‘generate pdf’ button, get the script to press that and return the data of the pdf (either raw or as a pdf)
b
thatguymikeneal: I believe your specific request would be difficult if not impossible, have you considered triggering the target action directly? In the case of Printing a record, you can use Netsuite's PDF generation (See Big Faceless Report Generator bfo.com/products/report/docs/userguide.pdf). You can port over an Advanced HTML template and just swap in proper variable references.
With regard to the specific PDF generation: https://netsuite.custhelp.com/app/answers/detail/a_id/20358/kw/nlapiXMLToPDF Other actions (fulfilling, receiving, etc) should be able to be accomplished through scripting as well. TransformRecord is a good function to look at for this type of task.