Team, do you know of way to "detect", from a suite...
# suitescript
a
Team, do you know of way to "detect", from a suitescript, when a new file is attached to a transaction, like a Sales Order?
k
Get Attachments and check latest date.
You will have last modified date
a
hmm, but I would like to "trigger" an action after the user has attached a file to a transaction
like adding an afterSubmit userEvent when a file is created
but the file record does not allow attaching scripts to it
so, I wonder if there is another way
k
Why don't you use search and trigger email based on file attachments ? Just create search with file information and trigger email up on create or update.
a
that is what I am trying to do... but you said "on create or update"... but on what create or update? What I am trying to do is to detect that a user has added a document to a transaction record, and trigger a script to send it somewhere.... but how do I detect that it was added?