Skip to main content
Business Central forum
Suggested answer

Bug when sending a purchase order by email

editSubscribe (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.

Categories:
  • 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,395 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,395 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?

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,030 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans