Sending a pdf mail via X++ and using SysOutgoingEmailData

Hi guys,

When I sent a PDF in mail with x++ code , how to use SysOutgoingEmailData table ?

Also what are the differences between SysOutgoingEmailData and SysOutgoingEmailTable.

thahks,

Why do you want to do anything in with any table if your goal is only to take a file and send it by email? Either you have some extra requirements that you forgot to mention, or you just somehow got a wrong impression that these tables are necessary for sending emails.

If you want to get these tables filled, call SysEmailTable::sendMail(), for example.

SysOutgoingEmailTable is the header and the SysOutgoingEmailData will have relevant data of the email(attachments)

The records in email table will be picked up by the sysEmailDistributor and processes them.

You can look at the fields in table to know more and also the \Classes\SysEmailDistributor\processEmails

Look at the cross references, to find some examples in AX how these tables are handled.

This very clear,

Thanks your reply,

Thanks for your reply. I m learing a lot of information from your reply.

I too got a valuable information on this discussion. thanks for this sharing.