cancel
Showing results for 
Search instead for 
Did you mean: 

Insert the price of the item in a CustomerQuote through OData Web Service

marlosdamasceno
Participant
0 Kudos

Hi there,

I am trying to do an OData Web Service of CustomerQuote. However, when I send the item, the NetAmount value does not work, the data is not persisted. Therefore, the line of the product keeps without the price. However, when I try with the SOAP Web Service, this value is persisted in the field AdjustedItemPrice.

How can I insert the price of the item in a CustomerQuote through OData Web Service?

Moreover, on SOAP Web Service I can set the CustomerQuote as External, is that possible in the OData?

The JOSN sent to the OData.

{      "ExternalKey": "365",    "EmployeeCode": "12766",    "CustomerCode": "160",     "CurrencyCode": "BRL",      "StartDateTime": "2017-05-14T14:15:00.1234567Z",    "ValidityStartDateTime": "2017-05-14T00:00:00",    "ValidityEndDateTime": "2017-10-28T00:00:00",    "CustomerQuoteCashDiscountTerms": {  "Code": "Z001"  },      "SalesOrderIdHybris": "1000",    "TotalValue": "44.66", 
    "TotalValueCurrencyCode": "BRL",     "CustomerQuoteTextCollection": [ {        "TypeCode": "10024",        "LanguageCode": "EN",         "Text": "Text"      } ],    "Name": "Customer Quote Through OData",    "CustomerQuoteItem": [ {        "ProductID": "24647301",        "Quantity": "1",        "NetAmount": "44.66",        "NetAmountCurrencyCode": "BRL"    } ]}


Part of the OData.

Best regards,
Marlos Damasceno

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

If you create an "external" ProcessingTypeCode for the quote you'll be able to set the values when creating. However, you cannot update this values. Appearently, C4C doesn't recognize this customer quote as external. The "flag" that indicates that a quote is external is not available in OData.


I've opened an incident related to that and as soon as I get a response I'll post it here.

Best regards,

Alexandre.

marlosdamasceno
Participant
0 Kudos

Hi Alexandre,

Thanks for the information!

Best regards

Marlos Damasceno

Answers (1)

Answers (1)

0 Kudos

Hi Marlos,

We can see that the two fields NetAmount and NetAmountCurrencyCode fields is not check marked for creatable or updatable .

Hence, you cannot insert/update values for above properties using Odata Services.

Regards
Akshara Akhauri

marlosdamasceno
Participant
0 Kudos

Hi Akshara,

Thanks for your reply. It seems possible to create with the value, however is not possible to update.

Best regards

Marlos Damasceno