Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Bug when sending a purchase order by email

(0) ShareShare
ReportReport
Posted on by

Hi,

I just found a Bug in the existing standard v19.4 Business Central code in the SendEmailInBackground() procedure of the Report Selections table.

The problem is that when a Purchase Order is sent by email to the Vendor, the ParamString filled in the Job Queue Entry is something like this string in ES version '6|106001|Pedido compra|10000|0||Vendor' and when it reaches this procedure, it has been shortened until it is equal to '0||Vendor', but since it does not coincide exactly with the literal 'Vendor' it spects, the email with the Purchase Order PDF ends up being sent to the Customer's email with the same No. as the Vendor's Order.

You can see the next debugger capture:

pastedimage1648465355713v1.png

Fortunately, I have been able to correctly intercept and modify this string in the OnSendEmailInBackgroundOnAfterGetJobQueueParameters() event, but it is a Bug that should be corrected as soon as possible due to the importance of sending an email to a totally wrong mailbox.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Bug when sending a purchase order by email

    Hello,

    The typical way to report bugs to Microsoft is not via community. The process is written here:

    docs.microsoft.com/.../technical-support

    If your company has a support plan, the owner of the partner contract should know how to raise support requests to Microsoft. This is usually done via Partner Center. I agree that this process is sometimes confusing as there are different partner contracts out there.

    Technical Consultants may want to report bugs internally within partner org first and then the contact person / contract owner can create a support request on your behalf. Not everyone is entitled within a partner org to reach out to Microsoft unless you have permissions to do so. This is how a lot of partners reach out to us and the process works fine. We may need to ask you to verify the scenario in an unmodified CRONUS company first without any extensions and also in latest CU (if possible).

    Thank you.

  • JFuentes Profile Picture
    JFuentes on at
    RE: Bug when sending a purchase order by email

    Hi Marco Mels ,  

    could you scale up this bug to BC Team please?

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,433 on at
    RE: Bug when sending a purchase order by email

    Hi JFuentes

    thanks for info. I agree with you that all developers should be able to report a bug and not a partner. I have found the following link that only works for partner. But again looks like it is not straight forward process.

    I hope someone from Microsoft provide extra info here

    docs.microsoft.com/.../technical-support

  • JFuentes Profile Picture
    JFuentes on at
    RE: Bug when sending a purchase order by email

    Hi MahGah,

    I am a senior Functional & Technical consultant currently working in an Spanish BC Partner, but I don't know how or where report the Bugs like this I am finding...

    In the past I have worked for an End-Customer with a proprietary solutions development license and had the exact same problem...

    I think Microsoft should open a channel to communicate BC Bugs to the entire developer community, whether or not they work for a Partner.

    Finally, the only place I've found where report this bugs is here... I hope someone in Microsoft can read it and solve this Bug.

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,433 on at
    RE: Bug when sending a purchase order by email

    Hi

    Thanks for report this #bug here. Can you please ask your partner to report this bug to Microsoft?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans