Hi experts,
I have a custom document page i have added action to generate invoice my code for generating invoice is working properly and invoice are generated everything is working properly.
Question 1:
Now i want to add another action Email when click the email the document should send to the selected customer email how it is possible ?
I have a tutorial on how to fix a bug in the mail management codeunit and email dialog, perhaps it can lead you in the right direction (navcoredev.com/.../Home). If you still can't figure it out, I suggest you download the Live Links add-in I created. You can either use that add-in, to easily do what you want, or you can look at the codes contained in the FactBox page that's part of the download. Look for the part that's doing an export then email, might be exactly what you're looking for.
Thank you sir for your reply yes i see but i want to use this function on my custom document page in AL for business central so can you please little explain that how to do this which function are using just to send not post and send ?
Do you want to send the Invoice as an attachment to the customer ?
If yes then its a standard available on posted sales invoice screen.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148