lazarus
lazarus

Reputation: 2017

Is adding product to quote through enhanced experience customizable?

When products are added through enhanced experience batch is executed on webapi by sending multiple create record requests. And this is payload of one request:

POST /api/data/v9.0/quotedetails HTTP/1.1
    
{
    "ispriceoverridden": false,
    "ofml_lineno": 1,
    "ofml_section": 1,
    "priceperunit": 2105.26,
    "productdescription": "Testing - prod description",
    "[email protected]": "/products(848ecbf6-5878-ec11-8d21-000d3ad55516)",
    "quantity": 1,
    "[email protected]": "/quotes(d07f272c-70b3-ed11-b596-6045bdd2b5e7)",
    "[email protected]": "/uoms(baae8a55-cb0b-ec11-b6e6-002248422a3d)"
    }

Problem is that this request fails in 2 cases:

  1. Error: You cannot set both 'productid' and 'productdescription' for the same record. This happens when product description is set on Product and length is less than 500 chars.
  2. If we have product description set and longer than 500 chars this error occurs: The length of the 'productdescription' attribute of the 'opportunityproduct' entity exceeded the maximum allowed length of '500'.

It works only if product description is empty. My question is if this is customizable so that I can remove productdescription property in transferring from Product to QuoteProduct i.e. ?

This applies on adding product to quote, opportunity, invoice, it's same in all cases. And also to add that I'm using Dynamics 365 Sales, Enterprise Edition (9.0.22121.10002)

Upvotes: 0

Views: 352

Answers (0)

Related Questions