Our Accounts package has some basic vb scripting functionality.
I have created a function that works when a purchase receipt is posted, it emails users if a parameter is true.
I only want to send one message per order so I thought I would create a text file in C:\Temp.
e.g 'Ordernumber.txt'. On subsequent receipts I can check if the file exists to prevent duplicate emails being sent.
Can anyone help with the syntax?