Announcements
Once PO is created and confirmed, create invoice, however user will not be able to match a product receipt, when user clicks ok and saves the invoice, the system should send the following information to the user to complete the product receipt. System will send alert via email that user is trying to post invoice without receiving the product receipt and ask the user to receive the product receipt. System will trigger this event when user clicks the ‘Ok’ button, additionally there will be a ‘Send alert for product receipt button’ on the action pane to trigger this event as well.
public static void main(Args _args)
{
SysMailerMessageBuilder messageBuilder = new SysMailerMessageBuilder();
Email toEmail;
Email fromEmail;
try
{
FromEmail = “sreddy@xyzcompany.com”;
toEmail = “tester@xyzcompany.com”;
messageBuilder.setBody(“Hello from D365”, false);
messageBuilder.setSubject(“Email Test from D365”);
messageBuilder.addTo(toEmail);
// Note: not calling setFrom() defaults to the current user for SMTP client, whereas
// when sent to Outlook any setFrom() value will be ignored since profiles on the client are used
messageBuilder.setFrom(fromEmail);
// Open the generated email in the configured client
// Sends a message interactively, allowing the user to view and modify the message before
SysMailerFactory::sendInteractive(messageBuilder.getMessage());
// Try using sendNonInteractive method too
}
catch (Exception::Error)
{
throw error(“@SYS33567”);
}
}
can you let us know what is the issue?
André Arnaud de Cal...
293,998
Super User 2025 Season 1
Martin Dráb
232,850
Most Valuable Professional
nmaenpaa
101,158
Moderator