I have created a web service for Equipment Timecard.
In the web service, I have the entry screen (EP308000) as DocumentSummary, the Summary Tab (EP308000) as a collection named DocumentLine, the Details Tab (EP308000) as a collection named LineDetail and the main screen Equipment Timecards (EP407000).
When I run this in Postman, it only creates a record in EP308000 and there is no detail and EP407000 there are no totals.
This is the body of the content that I am sending in Postman. It is not throwing any errors. Based on how the screen works, I believe I am mimicking the flow. Is the flow I am attempting wrong?
{
"RefNbr": {"value":"EQ00000045"},
"EquipmentID": {"value":"1"},
"Status": {"value":"On-Hold"},
"Week": {"value":"2024-06"},
"Type": {"value":"Normal"},
"DocumentSummary":
[
{
"TimeCardCD": {"value": "EQ00000045"},
"LineNbr": {"value": "1"},
"Project": {"value": "PR00000045"},
"Task": {"value": "01"},
"CostCode": {"value": "01300"},
"RateType": {"value": "RUN"},
"Mon": {"value": "08:00"},
"TimeSpent": {"value": "08:00"},
"Billable": {"value": "true"},
"Description": {"value": "Robs Test"}
}
],
"DetailLine":
[
{
"TimeCardCD": {"value": "EQ00000045"},
"LineNbr": {"value": "1"},
"Project": {"value": "PR00000045"},
"Task": {"value": "01"},
"CostCode": {"value": "01300"},
"RunTime": {"value": "08:00"},
"Billable": {"value": "true"},
"Description": {"value": "Robs Test"},
"Total": {"value": "08:00"}
}
],
"Main":
{
"RefNbr": {"value":"EQ00000045"},
"EquipmentID": {"value":"1"},
"Status": {"value":"On-Hold"},
"RunTime": {"value":"08:00"},
"BillableRunTime": {"value":"08:00"},
"Total": {"value":"08:00"},
"BillableTotal": {"value":"08:00"}
}
}
Best answer by robgriffin00
View original