Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

Some attribute values on Quote lines don't get written on the first PATCH request

Posted on by 39

My company's vendor software (which interacts heavily with D365 Supply Chain) submits a PATCH similar to this:

my-company.devaos.cloudax.dynamics.com/.../ExpSalesQuotationLines(dataAreaId='bau',InventoryLotId='LOT001840598')

{
            "BOMId": "BOM00034875",
            "DeliveryAddressLocationId": "000017124",
            "ProductConfigurationId": "000317",
            "RouteId": "RTN00026004",
            "SalesPrice": 5004.87,
            "LineDiscountPercentage": 38
}
On the initial POST prior to this, everything works. But then when the PATCH above is sent, SalesPrice and/or LineDiscountPercentage come through as blank. The only sure-fire way to make this work is to send the patch 3 times. That's right: THREE TIMES. This is 100% reproducible in my Hyper-V VM and against multiple F&O environments.
variant.png
ExpSalesQuotationLine is our company's extension of the standard quote line entity (SalesQuotationLine). Any ideas are welcome. Even if you could tell me where exactly in the X++ to debug to see why the first 2 PATCH requests don't update those 2 attribute values, that would be a useful place to start.
Thanks in advance.
  • RE: Some attribute values on BOM lines don't get written on the first PATCH request

    I forgot to mention that this problem occurs only with quotes; not sales orders.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans