DanJ
Member
I am trying to program an automatic RMA notification. It is similar to the user going into the tools exit and hitting the "Send Shortcut" button. I am trying to automate it so the users don't have to type the receipiant or message. I have the email sending but I can't figure out how to attach a message with the media object. The B012505 function has 2 parameters (szNameObject and GenericTextKey) that attach a text file from media object GT01131. Does anyone now how I can programmatically attach a text message to this email. I have the code below that does send the message with a working link. I can't figure out the email body however...
evt_URLString
evt_EmailSubject
VA evt_URLString = "IsMenu=0..Application=P5400511..Form=W5400511B.
.Version=NFT0001..DataFormat=1|W5400511B|1|2|3|4|5|6|7|8|9|10|11|12|13"
VA evt_EmailSubject = concat("Changes needed for RMA ", [FC RMA Number])
VA evt_URLString = concat([VA evt_URLString],"|14|15|16|17|18|19|20|21|22|23|24
..Data=")
VA evt_URLString = concat([VA evt_URLString],[FC RMA Number])
VA evt_URLString = concat([VA evt_URLString],"|R8|00001|1.000|0|0|0| | | | | |
| |0|0|0|0|0| | NFT10|0| | ..PODataFormat=1|T400511|3|4|5")
Send Shortcut from the Tools menu is OW Applications
"35123" -> BF mnAddressNumber
<Blank> -> BF szOrganizationTypeStructur
VA evt_EmailSubject -> BF szPPATBriefMassage
VA evt_URLString -> BF szShortcutString
"01" -> BF szMailBoxDesignator
<Blank> -> BF cUseStructureType
evt_URLString
evt_EmailSubject
VA evt_URLString = "IsMenu=0..Application=P5400511..Form=W5400511B.
.Version=NFT0001..DataFormat=1|W5400511B|1|2|3|4|5|6|7|8|9|10|11|12|13"
VA evt_EmailSubject = concat("Changes needed for RMA ", [FC RMA Number])
VA evt_URLString = concat([VA evt_URLString],"|14|15|16|17|18|19|20|21|22|23|24
..Data=")
VA evt_URLString = concat([VA evt_URLString],[FC RMA Number])
VA evt_URLString = concat([VA evt_URLString],"|R8|00001|1.000|0|0|0| | | | | |
| |0|0|0|0|0| | NFT10|0| | ..PODataFormat=1|T400511|3|4|5")
Send Shortcut from the Tools menu is OW Applications
"35123" -> BF mnAddressNumber
<Blank> -> BF szOrganizationTypeStructur
VA evt_EmailSubject -> BF szPPATBriefMassage
VA evt_URLString -> BF szShortcutString
"01" -> BF szMailBoxDesignator
<Blank> -> BF cUseStructureType