web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

List in Data Contract not decoding properly.

(0) ShareShare
ReportReport
Posted on by 15

When passing Json data to a custom service with data contract

[DataContract]
public final class ProductionOrderPickingListContract extends ProductionOrderJournalContractBase
{
     private List pickingListLines;


     [
           DataMember('pickingListLines'),
           SysOperationLabel("@ManufacturingExecutionCommon:PickingListLines"),
           DataCollection(Types::Class, classStr(ProductionOrderPickingListLineContract)),
           Hookable(false)
     ]

}

the contract object does not properly decode the child List objects as seen below:

Image

The JSON being passed is below:

{
"contract": {
"ProductionOrderNumber": "P04298",
"JournalNameId": null,
"ProductionDate": "2023-01-25T00:00:00-05:00",
"ProductionShift": null,
"pickingListLines": [
{
"ItemNumber": "800001",
"ConsumptionBOMQuantity": 0.0,
"ProposalBOMQuantity": 0.0,
"ScrapBOMQuantity": 0.0,
"BOMUnitSymbol": null,
"ConsumptionInventoryQuantity": 1.0,
"ProposalInventoryQuantity": 1.0,
"ConsumptionCatchWeightQuantity": 0.0,
"ProposalCatchWeightQuantity": 0.0,
"ConsumptionDate": "0001-01-01T00:00:00",
"OperationNumber": 0,
"LineNumber": 0.0,
"PositionNumber": null,
"InventoryLotId": null,
"IsConsumptionEnded": 0,
"ErrorCause": 0,
"ProductColorId": null,
"ProductConfigurationId": null,
"ProductSizeId": null,
"ProductStyleId": null,
"ProductVersionId": null,
"ItemBatchNumber": null,
"ProductionWarehouseId": "W032",
"ProductSerialNumber": null,
"ProductionSiteId": null,
"InventoryDimension1": null,
"InventoryDimension2": null,
"InventoryDimension3": null,
"InventoryDimension4": null,
"InventoryDimension5": null,
"InventoryDimension6": null,
"InventoryDimension7": null,
"InventoryDimension8": null,
"InventoryDimension9": null,
"InventoryDimension10": null,
"InventoryDimension11": null,
"InventoryDimension12": null,
"InventoryStatusId": null,
"LicensePlateNumber": null,
"InventoryGtdId": null,
"InventoryOwnerId": null,
"InventoryProfileId": null
},
{
"ItemNumber": "800001",
"ConsumptionBOMQuantity": 0.0,
"ProposalBOMQuantity": 0.0,
"ScrapBOMQuantity": 0.0,
"BOMUnitSymbol": null,
"ConsumptionInventoryQuantity": 1.0,
"ProposalInventoryQuantity": 1.0,
"ConsumptionCatchWeightQuantity": 0.0,
"ProposalCatchWeightQuantity": 0.0,
"ConsumptionDate": "0001-01-01T00:00:00",
"OperationNumber": 0,
"LineNumber": 0.0,
"PositionNumber": null,
"InventoryLotId": null,
"IsConsumptionEnded": 0,
"ErrorCause": 0,
"ProductColorId": null,
"ProductConfigurationId": null,
"ProductSizeId": null,
"ProductStyleId": null,
"ProductVersionId": null,
"ItemBatchNumber": null,
"ProductionWarehouseId": "W032",
"ProductSerialNumber": null,
"ProductionSiteId": null,
"InventoryDimension1": null,
"InventoryDimension2": null,
"InventoryDimension3": null,
"InventoryDimension4": null,
"InventoryDimension5": null,
"InventoryDimension6": null,
"InventoryDimension7": null,
"InventoryDimension8": null,
"InventoryDimension9": null,
"InventoryDimension10": null,
"InventoryDimension11": null,
"InventoryDimension12": null,
"InventoryStatusId": null,
"LicensePlateNumber": null,
"InventoryGtdId": null,
"InventoryOwnerId": null,
"InventoryProfileId": null
}
]
}
}

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 303 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 173 Super User 2025 Season 2

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 93 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans