D365 Sending Email with Customer Account Statement SSRS report as attachment using X++
public Email getCustEmail(CustAccount _custAccount){ CustTable custTable; DirPartyLocation dirPartyLocation; LogisticsLocation logisticsLocation; LogisticsElectronicAddress logisticsElectronicAddress; custTable = CustTable::find(_custAccount); select firstonly Location, Party from dirPartyLocation where dirPartyLocation.Party == custTable.Party join RecId from logisticsLocation where logisticsLocation.RecId == dirPartyLocation.Location join Locator from logisticsElectronicAddress where logisticsElectronicAddress.Location == logisticsLocation.RecId && logisticsElectronicAddress.Type == LogisticsElectronicAddressMethodType::Email && logisticsElectronicAddress.IsPrimary == NoYes::Yes; return logisticsElectronicAddress.Locator;}Published on:
Learn moreWe can help you with D365 Sending Email with Customer Account Statement SSRS report as attachment using X++
If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.
Related posts
clicking link on info message X++ to Open form
Message::AddAction() method can be used to embed an action within a message sent to the message bar. This method supports adding a singl...
D365 FO - Send Email with attachments by X++
Go to System administration >> Setup >> Email >> System email templatesCreate New template [ExtensionOf(clas...
D365 FO Data entity Export using X++
This post provides information on exporting data entity through X++ in D365 FO. The post includes a code snippet written in X++ that can be us...
D365 FO Encryption And Decryption Using A Symmetric Key(AES) using X++
If you're looking to encrypt and decrypt data using a symmetric key in D365 FO, this tutorial is the right place to be. The post details the s...
Get multiple selected rows using D365 X++
This blog post offers a valuable insight into D365 X++, offering a detailed guide on how to get multiple selected rows. Multi-select for Butto...
D365 Solution for Cloud Dev machine show error ' The remote certificate is invalid according to the validation procedure. '
You are getting 'The remote certificate is invalid according to the validation procedure.'Error show with all reports and tired Ro...
D365 F&O setup email notifications on workflows
How to setup email notifications on workflows in D365 F&OToday we’re going to see how to manage workflow notifications in D365 Suppl...