Formatting Emails generated from Global Alerts and / or BPMs - B

have not seen my 10 disks yet, but I assume they will be gone and replaced with a c# version.

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Tuesday, July 22, 2014 8:06 AM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: Formatting Emails generated from Global Alerts and / or BPMs - BAMs - 9.05.607B

 

 

Question for you, Greg….but wont the .p programs have to be rewritten for version 10?  Or can we still use them in version 10?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 2:03 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: Formatting Emails generated from Global Alerts and / or BPMs - BAMs - 9.05.607B

 

 

I do lots of them. This is an example one with some formatting. I used some files from the bam section to get started, but you can do a lot within the additional .p program.

 

Let me know what alert you are doing and I will see if I have one done.

 

 

Greg

 

{ud/GlbAlert.i &TableName = "OrderHed"}

 

assign SendEmail = false.

 

 

Define variable Planner as character no-undo.

define variable EmailAddress as Character no-undo initial '':U.

define variable UserName as Character no-undo initial '':U.

 

define variable vFrom as character no-undo initial '':U.

define variable vTo as character no-undo initial '':U.

define variable vCC as character no-undo initial '':U.

define variable vSubject as character no-undo initial '':U.

define variable vBody as character no-undo initial '':U.

 

 

Find UserFile where UserFile.DCDUserID = DCD-UserID no-error.

assign EMAIL-From = UserFile.EmailAddress.

 

 

/* Create the new body of the email */

 

 

 

Assign vBody  = "POC changed for " + string(OrderHed.OrderNum) + " by " + UserFile.Name +

                                                "~n~n~tOrder Number: " + string(OrderHed.OrderNum) +

                                                "~n~n~tOld POC " + OLDOrderHed.Character01 +

                                  "~n~n~tNew POC " + OrderHed.Character01.

 

 

vTO  = "email@..."

vCC  = "you@...;". /* CC to check out alert */

 

/* Exampes of formatting and conditions */

/*

                "~n~n~tMA Cost ~t" + string(Part.StdMaterialCost,"$>>>,>>>,>>9.99") + "~tExtended Cost " + trim(string(Part.StdMaterialCost * OrderHed.XOrderQty,"$>>>,>>>,>>9.99"))  +

                                                "~n~tPO Cost ~t" + string(OrderHed.UnitCost,"$>>>,>>>,>>9.99") + "~tExtended Cost " + TRIM(string(OrderHed.UnitCost * OrderHed.XOrderQty,"$>>>,>>>,>>9.99"))  +                                                                                              

 

                                                               

                                if (CostAtPO - CostAtStd) > 50 then do:

                                                assign vTO = vTO + "info@...;".

                                end.

                               

                                if (CostAtPO - CostAtStd) > 1000 then do:

                                                assign vCC  = vCC + "sales@...;".

                                end.

*/

 

 

 

Message "DEBUG Email  -  vTO  = " + vTO.

 

 

EMAIL-To = vTO.

EMAIL-CC = vCC + EMAIL-From.

assign EMAIL-Subject =  'POC Changed on ' + OrderHed.OrderNum.

assign EMAIL-Text = vBody.

 

 

assign SendEmail = true.

 

 

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 2:58 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: Formatting Emails generated from Global Alerts and / or BPMs - BAMs - 9.05.607B

 

 

Ok how about this….does anyone know how to modify a BAM email?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 10:01 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Formatting Emails generated from Global Alerts and / or BPMs - 9.05.607B

 

 

Anyone have instructions on how to do this?

 

Is it even possible?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

 


CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."



CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."

Ok how about this….does anyone know how to modify a BAM email?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 10:01 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Formatting Emails generated from Global Alerts and / or BPMs - 9.05.607B

 

 

Anyone have instructions on how to do this?

 

Is it even possible?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

I do lots of them. This is an example one with some formatting. I used some files from the bam section to get started, but you can do a lot within the additional .p program.

 

Let me know what alert you are doing and I will see if I have one done.

 

 

Greg

 

{ud/GlbAlert.i &TableName = "OrderHed"}

 

assign SendEmail = false.

 

 

Define variable Planner as character no-undo.

define variable EmailAddress as Character no-undo initial '':U.

define variable UserName as Character no-undo initial '':U.

 

define variable vFrom as character no-undo initial '':U.

define variable vTo as character no-undo initial '':U.

define variable vCC as character no-undo initial '':U.

define variable vSubject as character no-undo initial '':U.

define variable vBody as character no-undo initial '':U.

 

 

Find UserFile where UserFile.DCDUserID = DCD-UserID no-error.

assign EMAIL-From = UserFile.EmailAddress.

 

 

/* Create the new body of the email */

 

 

 

Assign vBody  = "POC changed for " + string(OrderHed.OrderNum) + " by " + UserFile.Name +

                                                "~n~n~tOrder Number: " + string(OrderHed.OrderNum) +

                                                "~n~n~tOld POC " + OLDOrderHed.Character01 +

                                  "~n~n~tNew POC " + OrderHed.Character01.

 

 

vTO  = "email@..."

vCC  = "you@...;". /* CC to check out alert */

 

/* Exampes of formatting and conditions */

/*

                "~n~n~tMA Cost ~t" + string(Part.StdMaterialCost,"$>>>,>>>,>>9.99") + "~tExtended Cost " + trim(string(Part.StdMaterialCost * OrderHed.XOrderQty,"$>>>,>>>,>>9.99"))  +

                                                "~n~tPO Cost ~t" + string(OrderHed.UnitCost,"$>>>,>>>,>>9.99") + "~tExtended Cost " + TRIM(string(OrderHed.UnitCost * OrderHed.XOrderQty,"$>>>,>>>,>>9.99"))  +                                                                                              

 

                                                               

                                if (CostAtPO - CostAtStd) > 50 then do:

                                                assign vTO = vTO + "info@...;".

                                end.

                               

                                if (CostAtPO - CostAtStd) > 1000 then do:

                                                assign vCC  = vCC + "sales@...;".

                                end.

*/

 

 

 

Message "DEBUG Email  -  vTO  = " + vTO.

 

 

EMAIL-To = vTO.

EMAIL-CC = vCC + EMAIL-From.

assign EMAIL-Subject =  'POC Changed on ' + OrderHed.OrderNum.

assign EMAIL-Text = vBody.

 

 

assign SendEmail = true.

 

 

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 2:58 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: Formatting Emails generated from Global Alerts and / or BPMs - BAMs - 9.05.607B

 

 

Ok how about this….does anyone know how to modify a BAM email?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 10:01 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Formatting Emails generated from Global Alerts and / or BPMs - 9.05.607B

 

 

Anyone have instructions on how to do this?

 

Is it even possible?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 



CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."

Question for you, Greg….but wont the .p programs have to be rewritten for version 10?  Or can we still use them in version 10?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 2:03 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: Formatting Emails generated from Global Alerts and / or BPMs - BAMs - 9.05.607B

 

 

I do lots of them. This is an example one with some formatting. I used some files from the bam section to get started, but you can do a lot within the additional .p program.

 

Let me know what alert you are doing and I will see if I have one done.

 

 

Greg

 

{ud/GlbAlert.i &TableName = "OrderHed"}

 

assign SendEmail = false.

 

 

Define variable Planner as character no-undo.

define variable EmailAddress as Character no-undo initial '':U.

define variable UserName as Character no-undo initial '':U.

 

define variable vFrom as character no-undo initial '':U.

define variable vTo as character no-undo initial '':U.

define variable vCC as character no-undo initial '':U.

define variable vSubject as character no-undo initial '':U.

define variable vBody as character no-undo initial '':U.

 

 

Find UserFile where UserFile.DCDUserID = DCD-UserID no-error.

assign EMAIL-From = UserFile.EmailAddress.

 

 

/* Create the new body of the email */

 

 

 

Assign vBody  = "POC changed for " + string(OrderHed.OrderNum) + " by " + UserFile.Name +

                                                "~n~n~tOrder Number: " + string(OrderHed.OrderNum) +

                                                "~n~n~tOld POC " + OLDOrderHed.Character01 +

                                  "~n~n~tNew POC " + OrderHed.Character01.

 

 

vTO  = "email@..."

vCC  = "you@...;". /* CC to check out alert */

 

/* Exampes of formatting and conditions */

/*

                "~n~n~tMA Cost ~t" + string(Part.StdMaterialCost,"$>>>,>>>,>>9.99") + "~tExtended Cost " + trim(string(Part.StdMaterialCost * OrderHed.XOrderQty,"$>>>,>>>,>>9.99"))  +

                                                "~n~tPO Cost ~t" + string(OrderHed.UnitCost,"$>>>,>>>,>>9.99") + "~tExtended Cost " + TRIM(string(OrderHed.UnitCost * OrderHed.XOrderQty,"$>>>,>>>,>>9.99"))  +                                                                                              

 

                                                               

                                if (CostAtPO - CostAtStd) > 50 then do:

                                                assign vTO = vTO + "info@...;".

                                end.

                               

                                if (CostAtPO - CostAtStd) > 1000 then do:

                                                assign vCC  = vCC + "sales@...;".

                                end.

*/

 

 

 

Message "DEBUG Email  -  vTO  = " + vTO.

 

 

EMAIL-To = vTO.

EMAIL-CC = vCC + EMAIL-From.

assign EMAIL-Subject =  'POC Changed on ' + OrderHed.OrderNum.

assign EMAIL-Text = vBody.

 

 

assign SendEmail = true.

 

 

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 2:58 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: Formatting Emails generated from Global Alerts and / or BPMs - BAMs - 9.05.607B

 

 

Ok how about this….does anyone know how to modify a BAM email?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, July 21, 2014 10:01 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Formatting Emails generated from Global Alerts and / or BPMs - 9.05.607B

 

 

Anyone have instructions on how to do this?

 

Is it even possible?

 

 

 

M. Manasa Reddy

manasa.reddy@...

281-994-3483 [d]  |  773-401-4126 [m]

 

 


CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."