I am trying to send an email to a list of vendors for a project. The email is being sent to the correct address, but without a subject, message. or attachment.
In the below, ProjectSummary is an ms word document template, with <<>> attributes from the Project object. Project is an input to the code for the below code in the SendVendorEmail process. The Display Message is showing the correct data.
GenericOutgoingEmail is a outgoing email notification object with an Attachment attribute of type Document.
GenericEmailVendor is a persistent object with all the email named attributes.
...
Find ProjectVendor where ProjectVendor.Project = Project
FIND Vendor WHERE Vendor = ProjectVendor.Vendor
DISPLAY MESSAGE 'Vendor is ' + Vendor.Name + ' and email is ' + Vendor.EmailAddress
CREATE GenericEmailVendor WITH
GenericEmailVendor.Subject='Project' + Project.Name + ' summary',
GenericEmailVendor.Message='See attached Project' + Project.Name + ' summary for your review',
GenericEmailVendor.SendTo=Vendor,
GenericEmailVendor.FromEmployee=Project.Owner,
GenericEmailVendor.Attachment='ProjectSummary'
SEND GenericOutgoingEmail TO GenericEmailVendor.SendTo