Hi everyone, i need to write a before submit user event but only wants it to fire when an invoice is created manually. How do we check if a transaction is manually created in script? Thanks in advance
Helena
01/28/2022, 8:40 PM
thanks @creece, since invoices can also be created automatically by another script, will this only work on manually create or both?
e
ehcanadian
01/28/2022, 8:59 PM
You could use
runtime.ContextType.USER_INTERFACE
☝️ 4
h
Helena
01/28/2022, 9:03 PM
@ehcanadian yass this is exactly what i need. Thank you!!
c
creece
01/28/2022, 9:33 PM
Deleting mine as it was wrong. I misunderstood what you were asking. @ehcanadian is right.
h
Helena
01/28/2022, 10:23 PM
appreciate your response @creece
s
Sciuridae54696d
01/29/2022, 4:03 PM
make sure you incorporate your logic for users if they use csv import. I find people to use that a lot more than UI when the system is complicated