Hi, can anyone help me out with some Postman JSON code for starting and stopping production activity from the MES. Looking at the trace log I think we may need Erp.BO.laborSvc/Update but unsure how many of the full fields of the dataset I need to send.
You can check the the api help (https://{server}/{instance}/api/help/v2/odata/Erp.BO.LaborSvc/index.html). There you can see the available endpoints and what json object is expected.
Yes Iâve been trying that and getting â
âvalueâ: âUnable to deserialize entityâ
You can use the GetByID endpoint to first get the Dataset. Copy it to the Update endpoint JSON body and update the fields you want and the RowMod to âUâ.
Note that the GetByID method returns the object wrapped in "returnObj
" while the Update endpoint expects âdsâ.
{
"returnObj": {
"LaborHed": [
{
{
"ds": {
"LaborHed": [
{
On /Labors I have done a GET which brings back all the labor entries. Example below.
{
"Company": "MYCOMPANY",
"EmployeeNum": "ES",
"LaborHedSeq": 72,
"PayrollDate": "2022-06-23T00:00:00",
"Shift": 11,
"ClockInDate": "2022-06-22T00:00:00",
"ClockInTime": "10.15",
"DspClockInTime": "10:09",
"ActualClockInTime": "10.15",
"ActualClockinDate": "2022-06-22T00:00:00",
"LunchStatus": "N",
"ActLunchOutTime": "0.00",
"LunchOutTime": "0.00",
"ActLunchInTime": "0.00",
"LunchInTime": "0.00",
"ClockOutTime": "0",
"DspClockOutTime": "24:00",
"ActualClockOutTime": "0",
"PayHours": "0.00",
"FeedPayroll": false,
"TransferredToPayroll": false,
"LaborCollection": true,
"TranSet": "",
"ActiveTrans": true,
"ChkLink": "",
"BatchTotalHrsDisp": "",
"BatchHrsRemainDisp": "",
"BatchHrsRemainPctDisp": "",
"BatchSplitHrsMethod": "",
"BatchAssignTo": false,
"BatchComplete": false,
"BatchStartHrs": null,
"BatchEndHrs": null,
"BatchTotalHrs": "0.00000",
"BatchHrsRemain": "0.00000",
"BatchHrsRemainPct": "0.00000",
"SysRevID": "185XXXXX579777",
"SysRowID": "8c45839a-8edXXXXXX44f6-822b-d398b322ac1e777",
"Imported": false,
"ImportDate": null,
"BatchMode": false,
"HCMPayHoursCalcType": "",
"EmpBasicShift": 11,
"EmpBasicSupervisorID": "",
"GetNewNoHdr": false,
"HCMTotPayHours": "0",
"ImagePath": "empphoto/MYCOMPANY/.bmp",
"LunchBreak": false,
"MES": false,
"PayrollValuesForHCM": "NON",
"TimeDisableDelete": false,
"TimeDisableUpdate": false,
"TotBurHrs": "0.00",
"TotLbrHrs": "0.00",
"WipPosted": false,
"DspPayHours": "0.00",
"FullyPosted": false,
"PartiallyPosted": false,
"HCMExistsWithStatus": false,
"PayrollDateNav": "2022-06-23T00:00:00",
"BitFlag": 0,
"EmployeeNumFirstName": "Emma",
"EmployeeNumName": "Emma Smith",
"EmployeeNumLastName": "Emma",
"HCMStatusStatus": "",
"PRSystHCMEnabled": false,
"ShiftDescription": "00:00 to 00:00",
"RowMod": ""
}
What about adding a new clockin record ? I want to post a new item for the service using POST /Labors. Iâve copied the code from get and changed laborHeadSeq to 0 and removing the SysrevID and SysrowID and RowMod tried as âAâ and âUâ. Error âUnable to deserialize entity. Input data is not in correct formatâ
Match the data types, you are passing strings where numbers are expected. Look at âClockInTimeâ for example. This is causing the deserializing error, epicor tries to save a string where a number is expected.
"Company": "string",
"EmployeeNum": "string",
"LaborHedSeq": 0,
"PayrollDate": "2022-09-29T13:00:15.947Z",
"Shift": 0,
"ClockInDate": "2022-09-29T13:00:15.947Z",
"ClockInTime": 0,
"DspClockInTime": "string",
"ActualClockInTime": 0,
"ActualClockinDate": "2022-09-29T13:00:15.947Z",
"LunchStatus": "string",
"ActLunchOutTime": 0,
"LunchOutTime": 0,
"ActLunchInTime": 0,
"LunchInTime": 0,
"ClockOutTime": 0,
"DspClockOutTime": "string",
"ActualClockOutTime": 0,
"PayHours": 0,
"FeedPayroll": true,
"TransferredToPayroll": true,
"LaborCollection": true,
"TranSet": "string",
"ActiveTrans": true,
"ChkLink": "string",
"BatchTotalHrsDisp": "string",
"BatchHrsRemainDisp": "string",
"BatchHrsRemainPctDisp": "string",
"BatchSplitHrsMethod": "string",
"BatchAssignTo": true,
"BatchComplete": true,
"BatchStartHrs": "2022-09-29T13:00:15.947Z",
"BatchEndHrs": "2022-09-29T13:00:15.947Z",
"BatchTotalHrs": 0,
"BatchHrsRemain": 0,
"BatchHrsRemainPct": 0,
"SysRevID": 0,
"SysRowID": "00000000-0000-0000-0000-000000000000",
"Imported": true,
"ImportDate": "2022-09-29T13:00:15.947Z",
"BatchMode": true,
"HCMPayHoursCalcType": "string",
"EmpBasicShift": 0,
"EmpBasicSupervisorID": "string",
"GetNewNoHdr": true,
"HCMTotPayHours": 0,
"ImagePath": "string",
"LunchBreak": true,
"MES": true,
"PayrollValuesForHCM": "string",
"TimeDisableDelete": true,
"TimeDisableUpdate": true,
"TotBurHrs": 0,
"TotLbrHrs": 0,
"WipPosted": true,
"DspPayHours": 0,
"FullyPosted": true,
"PartiallyPosted": true,
"HCMExistsWithStatus": true,
"PayrollDateNav": "2022-09-29T13:00:15.947Z",
"BitFlag": 0,
"EmployeeNumFirstName": "string",
"EmployeeNumName": "string",
"EmployeeNumLastName": "string",
"HCMStatusStatus": "string",
"PRSystHCMEnabled": true,
"ShiftDescription": "string",
"RowMod": "string",
Let me know if this helps
Thank you, itâs still the same unfortunately. Just checked the server to see if there are any more details.
An unexpected âPrimitiveValueâ node was found when reading from the JSON reader. A âStartObjectâ node was expected.
I just tried the endpoint (/{currentCompany}/Erp.BO.LaborSvc/Labors) with this JSON set and the labor was created successfully. Compare it to yours.
{
"Company": "[COMPANY NUM]",
"EmployeeNum": "01",
"LaborHedSeq": 5,
"PayrollDate": "2022-09-29T13:00:15.947Z",
"Shift": 1,
"ClockInDate": "2022-09-29T13:00:15.947Z",
"ClockInTime": 8,
"DspClockInTime": "08:00",
"ActualClockInTime": 0,
"ActualClockinDate": "2022-09-29T13:00:15.947Z",
"LunchStatus": "N",
"ActLunchOutTime": 0,
"LunchOutTime": 0,
"ActLunchInTime": 0,
"LunchInTime": 0,
"ClockOutTime": 17,
"DspClockOutTime": "17:00",
"ActualClockOutTime": 17,
"PayHours": 9,
"FeedPayroll": true,
"TransferredToPayroll": false,
"LaborCollection": false,
"TranSet": "",
"ActiveTrans": false,
"ChkLink": "",
"BatchTotalHrsDisp": "",
"BatchHrsRemainDisp": "",
"BatchHrsRemainPctDisp": "",
"BatchSplitHrsMethod": "",
"BatchAssignTo": false,
"BatchComplete": false,
"BatchStartHrs": null,
"BatchEndHrs": null,
"BatchTotalHrs": 0,
"BatchHrsRemain": 0,
"BatchHrsRemainPct": 0,
"SysRevID": 0,
"SysRowID": "00000000-0000-0000-0000-000000000000",
"Imported": false,
"ImportDate": null,
"BatchMode": false,
"HCMPayHoursCalcType": "",
"EmpBasicShift": 1,
"EmpBasicSupervisorID": "",
"GetNewNoHdr": false,
"HCMTotPayHours": 0,
"ImagePath": "",
"LunchBreak": false,
"MES": false,
"PayrollValuesForHCM": "NON",
"TimeDisableDelete": false,
"TimeDisableUpdate": false,
"TotBurHrs": 9,
"TotLbrHrs": 9,
"WipPosted": false,
"DspPayHours": 9,
"FullyPosted": false,
"PartiallyPosted": false,
"HCMExistsWithStatus": false,
"PayrollDateNav": "2022-09-29T13:00:15.947Z",
"BitFlag": 0,
"EmployeeNumFirstName": "WORKER",
"EmployeeNumName": "WORKER 01",
"EmployeeNumLastName": "01",
"HCMStatusStatus": "",
"PRSystHCMEnabled": false,
"ShiftDescription": "Standaard",
"RowMod": "A"
}
Still âUnable to deserialize entityâ message⌠checked the server logs
Cannot convert a primitive value to the expected type âEdm.Decimalâ. See the inner exception for more details.Looked at Erp.Labor table design and converted to decimal values⌠which one have I missed !? DSP are nvarchar in the DB.
{
âCompanyâ: âMYCOMPANYâ,
âEmployeeNumâ: âESâ,
âLaborHedSeqâ: 0,
âPayrollDateâ: â2022-09-29T13:00:15.94â,
âShiftâ: 10,
âClockInDateâ: â2022-09-29T13:00:15.94â,
âClockInTimeâ: 08.00,
âDspClockInTimeâ: â08:00â,
âActualClockInTimeâ: 08.00,
âActualClockinDateâ: â2022-09-29T08:00:15.94â,
âLunchStatusâ: âNâ,
âActLunchOutTimeâ: 0.00,
âLunchOutTimeâ: 0.00,
âActLunchInTimeâ: 0.00,
âLunchInTimeâ: 0.00,
âClockOutTimeâ: 0.00,
âDspClockOutTimeâ: â00:00â,
âActualClockOutTimeâ: 0.00,
âPayHoursâ: 0.00,
âFeedPayrollâ: false,
âTransferredToPayrollâ: false,
âLaborCollectionâ: false,
âTranSetâ: ââ,
âActiveTransâ: false,
âChkLinkâ: ââ,
âBatchTotalHrsDispâ: ââ,
âBatchHrsRemainDispâ: ââ,
âBatchHrsRemainPctDispâ: ââ,
âBatchSplitHrsMethodâ: ââ,
âBatchAssignToâ: false,
âBatchCompleteâ: false,
âBatchStartHrsâ: null,
âBatchEndHrsâ: null,
âBatchTotalHrsâ: 0.00,
âBatchHrsRemainâ: 0.00,
âBatchHrsRemainPctâ: 0.00,
âSysRevIDâ: 0,
âSysRowIDâ: â00000000-0000-0000-0000-000000000000â,
âImportedâ: false,
âImportDateâ: null,
âBatchModeâ: false,
âHCMPayHoursCalcTypeâ: ââ,
âEmpBasicShiftâ: 10,
âEmpBasicSupervisorIDâ: âKTâ,
âGetNewNoHdrâ: false,
âHCMTotPayHoursâ: 0.00,
âImagePathâ: âempphoto/SMPEUK/.bmpâ,
âLunchBreakâ: false,
âMESâ: false,
âPayrollValuesForHCMâ: âNONâ,
âTimeDisableDeleteâ: false,
âTimeDisableUpdateâ: false,
âTotBurHrsâ: 0.00,
âTotLbrHrsâ: 0.00,
âWipPostedâ: false,
âDspPayHoursâ: 0.00,
âFullyPostedâ: false,
âPartiallyPostedâ: false,
âHCMExistsWithStatusâ: false,
âPayrollDateNavâ: â2022-09-29T13:00:15.94â,
âBitFlagâ: 0,
âEmployeeNumFirstNameâ: âEmmaâ,
âEmployeeNumNameâ: âEmma Smithâ,
âEmployeeNumLastNameâ: âSmithâ,
âHCMStatusStatusâ: ââ,
âPRSystHCMEnabledâ: false,
âShiftDescriptionâ: â00:00 to 00:00â,
âRowModâ: âAâ
}
Request URL https://MYSERVER.MYDOMAIN.com/MYENVIRONMENT/api/v1/Erp.BO.LaborSvc/Labors
Have you used the Developer Tools (F12) in the browser to see what the Epicor client is sending when you do the transaction manually? How Epicor persists the data in the database may not necessarily match the types in the transaction.
If you are using API v1 I think your decimal values need to be wrapped in quotation marks.
âTotBurHrsâ: â0.00â for example.
I would recommend using v2 if you have it available (depends on your Epicor version)
Thanks all for the help, I now have this working
Hi Emma, sorry to drag up an old thread, I was wondering if you could help me out with this as well. We are attempting to start production activities through the REST api. I was using the StartActivity Method under Labors âErp.BO.LaborSvc - StartActivityâ. I am getting 200 success but when I check epicor for the labor records there is nothing being created.
you need to share a bit more than this. What call are you calling? What is your network payload? guessing your RowMod is blank.
I am calling a POST. I just attempting adding my RowMod to âAâ and still same thing, getting a success without any activity being seen in epicor LaborDtl Active Trans or in Time and Expense entry.
To test I manually clocked in to a job from MES, did call to GET GetActiveLaborDtl and copied that JSON into my POST âStart Activityâ. I changed a few fields like clock in time.
curl -X 'POST' \
'https://<MASKED>/Erp.BO.LaborSvc/StartActivity' \
-H 'accept: application/json' \
-H 'X-API-Key: <MASKED>' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <MASKED>' \
-d '{
"LaborHedSeq": 246942,
"StartType": "P",
"ds": {
"LaborHed": [
{
"Company": "123456",
"EmployeeNum": "0042",
"LaborHedSeq": 246942,
"PayrollDate": "2025-04-29T00:00:00-05:00",
"Shift": 104,
"ClockInDate": "2025-04-29T00:00:00-05:00",
"ClockInTime": 10.32,
"DspClockInTime": "10:19",
"ActualClockInTime": 10.32,
"ActualClockinDate": "2025-04-29T00:00:00-05:00",
"LunchStatus": "N",
"ActLunchOutTime": 10,
"LunchOutTime": 10,
"ActLunchInTime": 10.5,
"LunchInTime": 10.5,
"ClockOutTime": 0,
"DspClockOutTime": "",
"ActualClockOutTime": 0,
"PayHours": 0,
"FeedPayroll": true,
"TransferredToPayroll": false,
"LaborCollection": true,
"TranSet": "",
"ActiveTrans": true,
"ChkLink": "",
"BatchTotalHrsDisp": "",
"BatchHrsRemainDisp": "",
"BatchHrsRemainPctDisp": "",
"BatchSplitHrsMethod": "",
"BatchAssignTo": false,
"BatchComplete": false,
"BatchStartHrs": null,
"BatchEndHrs": null,
"BatchTotalHrs": 0,
"BatchHrsRemain": 0,
"BatchHrsRemainPct": 0,
"SysRevID": 2014332913,
"SysRowID": "b522e9fd-e2a1-484a-a9e4-de10331ea763",
"Imported": false,
"ImportDate": null,
"BatchMode": false,
"HCMPayHoursCalcType": "",
"IntegrationSource": "",
"EmpBasicShift": 104,
"EmpBasicSupervisorID": "10885",
"GetNewNoHdr": false,
"HCMTotPayHours": 0,
"ImagePath": "empphoto/157806/.bmp",
"LunchBreak": true,
"MES": false,
"PayrollValuesForHCM": "NON",
"TimeDisableDelete": false,
"TimeDisableUpdate": false,
"TotBurHrs": 0,
"TotLbrHrs": 0,
"WipPosted": false,
"DspPayHours": 0,
"FullyPosted": false,
"PartiallyPosted": false,
"HCMExistsWithStatus": false,
"PayrollDateNav": "2025-04-29T00:00:00-05:00",
"BitFlag": 0,
"EmployeeNumFirstName": "Christian",
"EmployeeNumName": "Christian Ortiz",
"EmployeeNumLastName": "Ortiz",
"HCMStatusStatus": "",
"PRSystHCMEnabled": false,
"ShiftDescription": "1st Shift 6:00am",
"RowMod": ""
}
],
"LaborDtl": [
{
"Company": "123456",
"EmployeeNum": "0042",
"LaborHedSeq": 246942,
"LaborDtlSeq": 379035,
"LaborType": "P",
"LaborTypePseudo": "P",
"ReWork": false,
"ReworkReasonCode": "",
"JobNum": "025464",
"AssemblySeq": 0,
"OprSeq": 20,
"JCDept": "CNC",
"ResourceGrpID": "HERMLE",
"OpCode": "4MILL5",
"LaborHrs": 0,
"BurdenHrs": 0,
"LaborQty": 0,
"ScrapQty": 0,
"ScrapReasonCode": "",
"SetupPctComplete": 0,
"Complete": false,
"IndirectCode": "",
"LaborNote": "",
"ExpenseCode": "INDIRECT",
"LaborCollection": true,
"AppliedToSchedule": false,
"ClockInMInute": 37604965,
"ClockOutMinute": 37606402,
"ClockInDate": "2025-04-29T00:00:00",
"ClockinTime": 13.37,
"ClockOutTime": 24,
"ActiveTrans": true,
"OverRidePayRate": 0,
"LaborRate": 34.66,
"BurdenRate": 46.88,
"DspClockInTime": "13:22",
"DspClockOutTime": "24:00",
"ResourceID": "HERMLE1",
"OpComplete": false,
"EarnedHrs": 0,
"AddedOper": false,
"PayrollDate": "2025-04-29T00:00:00",
"PostedToGL": false,
"FiscalYear": 0,
"FiscalPeriod": 0,
"JournalNum": 0,
"GLTrans": true,
"JournalCode": "",
"InspectionPending": false,
"CallNum": 0,
"CallLine": 0,
"ServNum": 0,
"ServCode": "",
"ResReasonCode": "",
"WipPosted": false,
"DiscrepQty": 0,
"DiscrpRsnCode": "",
"ParentLaborDtlSeq": 0,
"LaborEntryMethod": "T",
"FiscalYearSuffix": "",
"FiscalCalendarID": "",
"BFLaborReq": false,
"ABTUID": "",
"ProjectID": "",
"PhaseID": "",
"RoleCd": "",
"TimeTypCd": "",
"PBInvNum": 0,
"PMUID": 0,
"TaskSetID": "",
"ApprovedDate": null,
"ClaimRef": "",
"QuickEntryCode": "",
"TimeStatus": "E",
"CreatedBy": "0042",
"CreateDate": "2025-04-29T00:00:00",
"CreateTime": 48124,
"ChangedBy": "0042",
"ChangeDate": "2025-04-29T00:00:00",
"ChangeTime": 48124,
"ActiveTaskID": "",
"LastTaskID": "",
"CreatedViaTEWeekView": false,
"CurrentWFStageID": "",
"WFGroupID": "",
"WFComplete": false,
"ApprovalRequired": false,
"SubmittedBy": "",
"PBRateFrom": "",
"PBCurrencyCode": "",
"PBHours": 0,
"PBChargeRate": 0,
"PBChargeAmt": 0,
"DocPBChargeRate": 0,
"Rpt1PBChargeRate": 0,
"Rpt2PBChargeRate": 0,
"Rpt3PBChargeRate": 0,
"DocPBChargeAmt": 0,
"Rpt1PBChargeAmt": 0,
"Rpt2PBChargeAmt": 0,
"Rpt3PBChargeAmt": 0,
"Shift": 104,
"ActID": 0,
"DtailID": 0,
"ProjProcessed": false,
"AsOfDate": null,
"AsOfSeq": 0,
"JDFInputFiles": "",
"JDFNumberOfPages": "",
"BatchWasSaved": "",
"AssignToBatch": false,
"BatchComplete": false,
"BatchRequestMove": false,
"BatchPrint": false,
"BatchLaborHrs": 0,
"BatchPctOfTotHrs": 0,
"BatchQty": 0,
"BatchTotalExpectedHrs": 0,
"JDFOpCompleted": "",
"SysRevID": 2014333106,
"SysRowID": "7f3415fa-50f8-44f5-adf2-946a145f6ccf",
"Downtime": false,
"RefJobNum": "",
"RefAssemblySeq": 0,
"RefOprSeq": 0,
"Imported": false,
"ImportDate": null,
"TimeAutoSubmit": true,
"BatchMode": false,
"BillServiceRate": 0,
"HCMPayHours": 0,
"EpicorFSA": false,
"DiscrepAttributeSetID": 0,
"LaborAttributeSetID": 0,
"ScrapAttributeSetID": 0,
"PCID": "",
"NonConfPCID": "",
"IntegrationSource": "",
"AllowDirLbr": true,
"ApprovalPhaseDesc": "",
"ApprovalPhaseID": "",
"ApprovalProjectDesc": "",
"ApprovalProjectID": "",
"ApprovedBy": "",
"ApprvrHasOpenTask": false,
"BaseCurrCodeDesc": "",
"BurdenCost": 0,
"CallCode": "",
"CapabilityDescription": "",
"CapabilityID": "",
"ChargeRate": 0,
"ChargeRateSRC": "",
"ChgRateCurrDesc": "",
"CompleteFlag": false,
"ContractCode": "",
"ContractNum": 0,
"DiscrepUOM": "",
"DisLaborType": false,
"DisplayJob": "",
"DisPrjRoleCd": false,
"DisTimeTypCd": false,
"DowntimeTotal": 0,
"DspChangeTime": "",
"DspCreateTime": "",
"DspTotHours": "",
"DtClockIn": null,
"DtClockOut": null,
"EfficiencyPercentage": 0,
"EmployeeName": "",
"EnableComplete": false,
"EnableCopy": false,
"EnableDiscrepQty": false,
"EnableInspection": false,
"EnableLaborQty": false,
"EnableNextOprSeq": false,
"EnablePrintTagsList": false,
"EnableRecall": false,
"EnableRecallAprv": false,
"EnableRequestMove": false,
"EnableResourceGrpID": false,
"EnableScrapQty": false,
"EnableSN": false,
"EnableSubmit": false,
"EndActivity": false,
"EnteredOnCurPlant": false,
"FSAAction": "",
"FSACallCode": "",
"FSAContractCode": "",
"FSAContractNum": 0,
"FSAEmpID": "",
"FSAEquipmentInstallID": 0,
"FSAEquipmentPartNum": "",
"FSAServiceOrderNum": 0,
"FSAServiceOrderResourceNum": 0,
"FSAWarrantyCode": "",
"FSComplete": false,
"GLTranAmt": 0,
"GLTranDate": null,
"HasAccessToRow": true,
"HasComments": false,
"HH": false,
"IntExternalKey": "",
"ISFixHourAndQtyOnly": false,
"JCSystReworkReasons": false,
"JCSystScrapReasons": false,
"JobOperComplete": false,
"JobType": "",
"JobTypeCode": "MFG",
"LaborCost": 0,
"LaborUOM": "",
"LbrDay": "",
"LbrMonth": "",
"LbrWeek": "",
"MES": false,
"MultipleEmployeesText": "",
"NewDifDateFlag": 0,
"NewPrjRoleCd": "",
"NewRoleCdDesc": "",
"NextAssemblySeq": 0,
"NextOperDesc": "",
"NextOprSeq": 0,
"NextResourceDesc": "",
"NonConfProcessed": false,
"NotSubmitted": false,
"OkToChangeResourceGrpID": false,
"PartDescription": "",
"PartNum": "",
"PBAllowModify": false,
"PendingApprovalBy": "",
"PhaseJobNum": "",
"PhaseOprSeq": 0,
"PrintNCTag": false,
"PrjUsedTran": "",
"ProdDesc": "",
"ProjPhaseID": "",
"RequestMove": false,
"ResourceDesc": "",
"RoleCdDisplayAll": false,
"ScrapUOM": "",
"SentFromMES": false,
"StartActivity": false,
"TimeDisableDelete": false,
"TimeDisableUpdate": false,
"TreeNodeImageName": "",
"UnapprovedFirstArt": false,
"WarrantyCode": "",
"WeekDisplayText": "",
"EnablePCID": false,
"OutputBin": "",
"OutputWarehouse": "",
"EnableLot": false,
"LotNum": "",
"PrintPCIDContents": false,
"HasAttachments": false,
"AttrClassID": "",
"DiscrepAttributeSetDescription": "",
"DiscrepAttributeSetShortDescription": "",
"ScrapAttributeSetDescription": "",
"ScrapAttributeSetShortDescription": "",
"LaborAttributeSetDescription": "",
"LaborAttributeSetShortDescription": "",
"DisableRecallAndDelete": false,
"RoleCdList": "",
"RowSelected": false,
"AppointmentStart": null,
"AppointmentEnd": null,
"AppointmentTitle": "",
"TemplateID": "",
"WIPTransaction": false,
"DiscrepRevision": "",
"LaborRevision": "",
"ScrapRevision": "",
"TrackInventoryByRevision": false,
"ReportPartQtyAllowed": false,
"BitFlag": 0,
"DiscrpRsnDescription": "",
"EmpBasicLastName": "Ortiz",
"EmpBasicFirstName": "Christian",
"EmpBasicName": "Christian Ortiz",
"ExpenseCodeDescription": "Indirect Labor",
"HCMIntregationHCMEnabled": false,
"HCMStatusStatus": "",
"IndirectDescription": "",
"JCDeptDescription": "CNC Job Shop",
"JobAsmblPartNum": "V562X-2R",
"JobAsmblDescription": "TRUCK, RIGHT HAND, V562X, SELF CENTERING VISE",
"MachineDescription": "4801 HERMLE 1 (C30)",
"OpCodeOpDesc": "WH Mill 5 Axis",
"OpDescOpDesc": "MILL OP 3",
"PayMethodType": 0,
"PayMethodSummarizePerCustomer": false,
"PayMethodName": "",
"PhaseIDDescription": "",
"ProjectDescription": "",
"ResourceGrpDescription": "5XM HERMLE1 & DOO5",
"ResReasonDescription": "",
"ReWorkReasonDescription": "",
"RoleCdRoleDescription": "",
"ScrapReasonDescription": "",
"ShiftDescription": "1st Shift 6:00am",
"TimeTypCdDescription": "",
"RowMod": "A",
"B2B_c": 0,
"CycleTime_c": 0,
"LoadTime_c": 0,
"UD_SysRevID": "AAAAAHgQSK0=",
"UnloadTime_c": 0,
"ViceCount_c": 1
}
],
"LaborDtlAttch": [],
"LaborDtlAction": [],
"LaborDtlComment": [],
"LaborEquip": [],
"LaborPart": [],
"LbrScrapSerialNumbers": [],
"LaborDtlGroup": [],
"SelectedSerialNumbers": [],
"SNFormat": [],
"TimeWeeklyView": [],
"TimeWorkHours": [],
"ExtensionTables": []
}
}
}'
I am seeing RowMod is blank.
Thank you, I see there is two Row Mods, One for the LaborHed Dataset and one for the LaborDtl Dataset. I had only modified the LaborDtl Dataset Row Mod in this example. I changed both to A and still nothing, then laborhed to U and LaborDtl to A, nothing created, then both to U and nothing changed.
Hi Christian,
Are you calling Labor.Update after your call to StartActivity?
Hereâs the set of BO methods I call as part of an Epicor function that starts activity:
I found that I didnât need to make any changes to RowMod to get this to work.
Many thanks,
Nathan
Hi, these are the business objects i am calling to create the labour, I think you need to run the update after the start activity.
Erp.BO.EmpBasicSvc/ClockIn
Erp.BO.LaborSvc/GetByID
Erp.BO.LaborSvc/StartActivity
Erp.BO.LaborSvc/DefaultJobNum
Erp.BO.LaborSvc/LaborRateCalc
Erp.BO.LaborSvc/DefaultOprSeq
Erp.BO.LaborSvc/LaborRateCalc
Erp.BO.LaborSvc/CheckWarnings
Erp.BO.LaborSvc/CheckEmployeeActivity
Erp.BO.LaborSvc/CheckFirstArticleWarning
Erp.BO.LaborSvc/Update
Then to finish and complete the job we call
Erp.BO.LaborSvc/GetDetail
Erp.BO.LaborSvc/EndActivity
Erp.BO.LaborSvc/EndActivityComplete
Erp.BO.LaborSvc/CheckWarnings
Erp.BO.LaborSvc/Update