In addition to the comments below, we also discovered you can send
the email to multiple addresses by seperating with a comma. You
used the format "user1@..., user2@..."
Just thought we would post it as "historical" data.
Aaron Hoyt
Hittite Microwave
the email to multiple addresses by seperating with a comma. You
used the format "user1@..., user2@..."
Just thought we would post it as "historical" data.
Aaron Hoyt
Hittite Microwave
--- In vantage@yahoogroups.com, aaronhoyt@v... wrote:
> John and others interested,
>
> Cliff and I took the original thread offline. These is the
results
> that I have managed to make work in our testing environment. I
> thought others might find it of use, so I decided to publish the
> results. Forgive the length of the message please.
>
> (for auto email upon the creation of an order for a "credit hold"
> customer)
>
> CreditHO.p
> ----------
> {ud/GlbAlert.i &tablename = "OrderHed" }
>
> DEFINE VARIABLE NewEmailBofy AS CHARACTER NO-UNDO.
>
> /*new email body*/
> IF OrderHed.OpenOrder = TRUE
>
> THEN DO:
>
> FIND Customer WHERE (Customer.Company = OrderHed.Company) AND
> (Customer.Custnum = OrderHed.Custnum)
> NO-LOCK.
> IF Customer.CreditHold = TRUE
> THEN DO:
> ASSIGN Email-To = "hoyt@h..."
> Email-Subject = "Credit Hold Order"
> Email-Text = "Sales order "
> + string(OrderHed.Ordernum)
> + " has been created for "
> + string(Customer.name)
> + " and they are on credit hold.".
>
> END.
> ELSE DO:
> Return "Cancel Send":U.
> END.
> END.
> ELSE DO:
> Return "Cancel Send":U.
> END.
> ----------
>
> (for automatic email on the use of the override function from the
AR
> module for a specific order)
>
> CreditOR.P
> ----------
> {ud/GlbAlert.i &tablename = "OrderHed" }
>
> DEFINE VARIABLE NewEmailBofy AS CHARACTER NO-UNDO.
>
> /*new email body*/
> IF OrderHed.CreditOverride = TRUE
>
> THEN DO:
>
> FIND Customer WHERE (Customer.Company = OrderHed.Company) AND
> (Customer.Custnum = OrderHed.Custnum)
> NO-LOCK.
>
> ASSIGN Email-To = "hoyt@h..."
> Email-Subject = "Credit Override"
> Email-Text = "Sales order "
> + string(OrderHed.Ordernum)
> + " has been created for "
> + string(Customer.name)
> + " and they are on credit hold.".
>
> END.
> ELSE DO:
> Return "Cancel Send":U.
> END.
> ----------
>
> If anyone uses either of these codes, please remove my address
from
> the "Email-To" field. I don't mind it being used by those with
> questions, but I really don't want to know every time you create
> orders for credit hold customers.
> Feel free to customize this code for your purpose. As for the
> GlbAlert.i include program, please call your Epicor rep and ask
for
> a copy.
>
> Good luck to all.
>
> Aaron Hoyt
> Hittite Microwave Corporation