Error to use Customer Defined Fields in OData REST API extension point

Fabiano Silva
Fabiano Silva Member, Infor Partner Posts: 70

Hi Guys,

Someone help me?

I created a new field in Sales order line and created a extension point for OData REST API but when I send a request the new field is not found.

I could like receive some value in new field.

The request

LN/lnapi/odata/tdapi.slsSalesOrder/CreateLine

body

{
"SalesOrder": "100000001",
"Item": " 4602",
"Price": 1000,
"SalesPriceUnit": "pc",
"OrderedQuantity": 1,
"SalesUnit": "pc",
"Length": 0,
"Width": 0,
"Height": 0,
"LineDiscount": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"DiscountAmount": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"DiscountMethod": [
"Gross",
"Gross",
"Gross",
"Gross",
"Gross",
"Gross",
"Gross",
"Gross",
"Gross",
"Gross",
"Gross"
],
"DiscountCode": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"Determining": "Yes",
"Eligible": "Yes",
"Amount": 0,
"ShiptoContact": null,
"CarrierLSP": null,
"CustomerOrder": null,
"CustomerOrderPosition": null,
"CustomerOrderSequence": null,
"ChangeOrderSequenceNo": null,
"OrderLineText": "",
"ValueSf" : 10,
"Comisso": "Test"
}

Thanks