Parameter lWeeklyView is not found in the input object - Approval of Labor Entry

Kinetic - Cloud

Attempting to Submit a Header, Details, & Approve a Labor Entry.

Erp.BO.LaborSvc - SubmitForApproval

Rest help says no params are required

Also says it’s missing
image

Attempting the following

            var laborHedSeq = lh.GetHeaderByEmployeeNum(lbr);
            var ds1 = new JObject();
            if (Convert.ToInt32(laborHedSeq) != 0)
            {
                ds1 = lh.GetByID(ds, lbr, laborHedSeq);
                var test = ds1.ToString();
                test = test.Replace("returnObj", "ds");
                ds1 = JsonConvert.DeserializeObject<JObject>(test);
                var ds3 = lh.GetNewLaborDtl(ds1, lbr, "ds");
                var ds4 = lh.Update(ds3);
                var ds5 = lh.ValidateChargeRateForTimeType(ds4);
                var test2 = lh.SubmitForApproval(ds5);
            }
            else
            {
                ds1 = lh.GetNewLaborHed1(ds, lbr);
                var ds2 = lh.Update(ds1);
                //sleep
                System.Threading.Thread.Sleep(1000);
                var ds3 = lh.GetNewLaborDtl(ds2, lbr, "ds");
                var ds4 = lh.Update(ds3);
                var ds5 = lh.ValidateChargeRateForTimeType(ds4);
                var test2 = lh.SubmitForApproval(ds5);
            }

You should be using this endpoint:

https://[server]/server/api/help/v2/odata/Erp.BO.laborSvc/index.html?urls.primaryName=Custom%20methods#/Custom%20methods/SubmitForApproval

This is the input:

{
  "ds": {
    "LaborHed": [
      {
        "Company": "string",
        "EmployeeNum": "string",
        "LaborHedSeq": 0,
        "PayrollDate": "2024-05-25T15:38:16.878Z",
        "Shift": 0,
        "ClockInDate": "2024-05-25T15:38:16.879Z",
        "ClockInTime": 0,
        "DspClockInTime": "string",
        "ActualClockInTime": 0,
        "ActualClockinDate": "2024-05-25T15:38:16.879Z",
        "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": "2024-05-25T15:38:16.879Z",
        "BatchEndHrs": "2024-05-25T15:38:16.879Z",
        "BatchTotalHrs": 0,
        "BatchHrsRemain": 0,
        "BatchHrsRemainPct": 0,
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "Imported": true,
        "ImportDate": "2024-05-25T15:38:16.879Z",
        "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": "2024-05-25T15:38:16.879Z",
        "BitFlag": 0,
        "EmployeeNumFirstName": "string",
        "EmployeeNumName": "string",
        "EmployeeNumLastName": "string",
        "HCMStatusStatus": "string",
        "PRSystHCMEnabled": true,
        "ShiftDescription": "string",
        "RowMod": "string"
      }
    ],
    "LaborDtl": [
      {
        "Company": "string",
        "EmployeeNum": "string",
        "LaborHedSeq": 0,
        "LaborDtlSeq": 0,
        "LaborType": "string",
        "LaborTypePseudo": "string",
        "ReWork": true,
        "ReworkReasonCode": "string",
        "JobNum": "string",
        "AssemblySeq": 0,
        "OprSeq": 0,
        "JCDept": "string",
        "ResourceGrpID": "string",
        "OpCode": "string",
        "LaborHrs": 0,
        "BurdenHrs": 0,
        "LaborQty": 0,
        "ScrapQty": 0,
        "ScrapReasonCode": "string",
        "SetupPctComplete": 0,
        "Complete": true,
        "IndirectCode": "string",
        "LaborNote": "string",
        "ExpenseCode": "string",
        "LaborCollection": true,
        "AppliedToSchedule": true,
        "ClockInMInute": 0,
        "ClockOutMinute": 0,
        "ClockInDate": "2024-05-25T15:38:16.879Z",
        "ClockinTime": 0,
        "ClockOutTime": 0,
        "ActiveTrans": true,
        "OverRidePayRate": 0,
        "LaborRate": 0,
        "BurdenRate": 0,
        "DspClockInTime": "string",
        "DspClockOutTime": "string",
        "ResourceID": "string",
        "OpComplete": true,
        "EarnedHrs": 0,
        "AddedOper": true,
        "PayrollDate": "2024-05-25T15:38:16.879Z",
        "PostedToGL": true,
        "FiscalYear": 0,
        "FiscalPeriod": 0,
        "JournalNum": 0,
        "GLTrans": true,
        "JournalCode": "string",
        "InspectionPending": true,
        "CallNum": 0,
        "CallLine": 0,
        "ServNum": 0,
        "ServCode": "string",
        "ResReasonCode": "string",
        "WipPosted": true,
        "DiscrepQty": 0,
        "DiscrpRsnCode": "string",
        "ParentLaborDtlSeq": 0,
        "LaborEntryMethod": "string",
        "FiscalYearSuffix": "string",
        "FiscalCalendarID": "string",
        "BFLaborReq": true,
        "ABTUID": "string",
        "ProjectID": "string",
        "PhaseID": "string",
        "RoleCd": "string",
        "TimeTypCd": "string",
        "PBInvNum": 0,
        "PMUID": 0,
        "TaskSetID": "string",
        "ApprovedDate": "2024-05-25T15:38:16.879Z",
        "ClaimRef": "string",
        "QuickEntryCode": "string",
        "TimeStatus": "string",
        "CreatedBy": "string",
        "CreateDate": "2024-05-25T15:38:16.879Z",
        "CreateTime": 0,
        "ChangedBy": "string",
        "ChangeDate": "2024-05-25T15:38:16.879Z",
        "ChangeTime": 0,
        "ActiveTaskID": "string",
        "LastTaskID": "string",
        "CreatedViaTEWeekView": true,
        "CurrentWFStageID": "string",
        "WFGroupID": "string",
        "WFComplete": true,
        "ApprovalRequired": true,
        "SubmittedBy": "string",
        "PBRateFrom": "string",
        "PBCurrencyCode": "string",
        "PBHours": 0,
        "PBChargeRate": 0,
        "PBChargeAmt": 0,
        "DocPBChargeRate": 0,
        "Rpt1PBChargeRate": 0,
        "Rpt2PBChargeRate": 0,
        "Rpt3PBChargeRate": 0,
        "DocPBChargeAmt": 0,
        "Rpt1PBChargeAmt": 0,
        "Rpt2PBChargeAmt": 0,
        "Rpt3PBChargeAmt": 0,
        "Shift": 0,
        "ActID": 0,
        "DtailID": 0,
        "ProjProcessed": true,
        "AsOfDate": "2024-05-25T15:38:16.879Z",
        "AsOfSeq": 0,
        "JDFInputFiles": "string",
        "JDFNumberOfPages": "string",
        "BatchWasSaved": "string",
        "AssignToBatch": true,
        "BatchComplete": true,
        "BatchRequestMove": true,
        "BatchPrint": true,
        "BatchLaborHrs": 0,
        "BatchPctOfTotHrs": 0,
        "BatchQty": 0,
        "BatchTotalExpectedHrs": 0,
        "JDFOpCompleted": "string",
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "Downtime": true,
        "RefJobNum": "string",
        "RefAssemblySeq": 0,
        "RefOprSeq": 0,
        "Imported": true,
        "ImportDate": "2024-05-25T15:38:16.879Z",
        "TimeAutoSubmit": true,
        "BatchMode": true,
        "BillServiceRate": 0,
        "HCMPayHours": 0,
        "EpicorFSA": true,
        "DiscrepAttributeSetID": 0,
        "LaborAttributeSetID": 0,
        "ScrapAttributeSetID": 0,
        "PCID": "string",
        "NonConfPCID": "string",
        "AllowDirLbr": true,
        "ApprovalPhaseDesc": "string",
        "ApprovalPhaseID": "string",
        "ApprovalProjectDesc": "string",
        "ApprovalProjectID": "string",
        "ApprovedBy": "string",
        "ApprvrHasOpenTask": true,
        "BaseCurrCodeDesc": "string",
        "BurdenCost": 0,
        "CallCode": "string",
        "CapabilityDescription": "string",
        "CapabilityID": "string",
        "ChargeRate": 0,
        "ChargeRateSRC": "string",
        "ChgRateCurrDesc": "string",
        "CompleteFlag": true,
        "ContractCode": "string",
        "ContractNum": 0,
        "DiscrepUOM": "string",
        "DisLaborType": true,
        "DisplayJob": "string",
        "DisPrjRoleCd": true,
        "DisTimeTypCd": true,
        "DowntimeTotal": 0,
        "DspChangeTime": "string",
        "DspCreateTime": "string",
        "DspTotHours": "string",
        "DtClockIn": "2024-05-25T15:38:16.879Z",
        "DtClockOut": "2024-05-25T15:38:16.879Z",
        "EfficiencyPercentage": 0,
        "EmployeeName": "string",
        "EnableComplete": true,
        "EnableCopy": true,
        "EnableDiscrepQty": true,
        "EnableInspection": true,
        "EnableLaborQty": true,
        "EnableNextOprSeq": true,
        "EnablePrintTagsList": true,
        "EnableRecall": true,
        "EnableRecallAprv": true,
        "EnableRequestMove": true,
        "EnableResourceGrpID": true,
        "EnableScrapQty": true,
        "EnableSN": true,
        "EnableSubmit": true,
        "EndActivity": true,
        "EnteredOnCurPlant": true,
        "FSAAction": "string",
        "FSACallCode": "string",
        "FSAContractCode": "string",
        "FSAContractNum": 0,
        "FSAEmpID": "string",
        "FSAEquipmentInstallID": 0,
        "FSAEquipmentPartNum": "string",
        "FSAServiceOrderNum": 0,
        "FSAServiceOrderResourceNum": 0,
        "FSAWarrantyCode": "string",
        "FSComplete": true,
        "GLTranAmt": 0,
        "GLTranDate": "2024-05-25T15:38:16.879Z",
        "HasAccessToRow": true,
        "HasComments": true,
        "HH": true,
        "IntExternalKey": "string",
        "ISFixHourAndQtyOnly": true,
        "JCSystReworkReasons": true,
        "JCSystScrapReasons": true,
        "JobOperComplete": true,
        "JobType": "string",
        "JobTypeCode": "string",
        "LaborCost": 0,
        "LaborUOM": "string",
        "LbrDay": "string",
        "LbrMonth": "string",
        "LbrWeek": "string",
        "MES": true,
        "MultipleEmployeesText": "string",
        "NewDifDateFlag": 0,
        "NewPrjRoleCd": "string",
        "NewRoleCdDesc": "string",
        "NextAssemblySeq": 0,
        "NextOperDesc": "string",
        "NextOprSeq": 0,
        "NextResourceDesc": "string",
        "NonConfProcessed": true,
        "NotSubmitted": true,
        "OkToChangeResourceGrpID": true,
        "PartDescription": "string",
        "PartNum": "string",
        "PBAllowModify": true,
        "PendingApprovalBy": "string",
        "PhaseJobNum": "string",
        "PhaseOprSeq": 0,
        "PrintNCTag": true,
        "PrjUsedTran": "string",
        "ProdDesc": "string",
        "ProjPhaseID": "string",
        "RequestMove": true,
        "ResourceDesc": "string",
        "RoleCdDisplayAll": true,
        "ScrapUOM": "string",
        "SentFromMES": true,
        "StartActivity": true,
        "TimeDisableDelete": true,
        "TimeDisableUpdate": true,
        "TreeNodeImageName": "string",
        "UnapprovedFirstArt": true,
        "WarrantyCode": "string",
        "WeekDisplayText": "string",
        "EnablePCID": true,
        "OutputBin": "string",
        "OutputWarehouse": "string",
        "EnableLot": true,
        "LotNum": "string",
        "PrintPCIDContents": true,
        "HasAttachments": true,
        "AttrClassID": "string",
        "DiscrepAttributeSetDescription": "string",
        "DiscrepAttributeSetShortDescription": "string",
        "ScrapAttributeSetDescription": "string",
        "ScrapAttributeSetShortDescription": "string",
        "LaborAttributeSetDescription": "string",
        "LaborAttributeSetShortDescription": "string",
        "DisableRecallAndDelete": true,
        "RoleCdList": "string",
        "RowSelected": true,
        "AppointmentStart": "2024-05-25T15:38:16.879Z",
        "AppointmentEnd": "2024-05-25T15:38:16.879Z",
        "AppointmentTitle": "string",
        "TemplateID": "string",
        "WIPTransaction": true,
        "DiscrepRevision": "string",
        "LaborRevision": "string",
        "ScrapRevision": "string",
        "TrackInventoryByRevision": true,
        "ReportPartQtyAllowed": true,
        "BitFlag": 0,
        "DiscrpRsnDescription": "string",
        "EmpBasicLastName": "string",
        "EmpBasicFirstName": "string",
        "EmpBasicName": "string",
        "ExpenseCodeDescription": "string",
        "HCMIntregationHCMEnabled": true,
        "HCMStatusStatus": "string",
        "IndirectDescription": "string",
        "JCDeptDescription": "string",
        "JobAsmblPartNum": "string",
        "JobAsmblDescription": "string",
        "MachineDescription": "string",
        "OpCodeOpDesc": "string",
        "OpDescOpDesc": "string",
        "PayMethodType": 0,
        "PayMethodSummarizePerCustomer": true,
        "PayMethodName": "string",
        "PhaseIDDescription": "string",
        "ProjectDescription": "string",
        "ResourceGrpDescription": "string",
        "ResReasonDescription": "string",
        "ReWorkReasonDescription": "string",
        "RoleCdRoleDescription": "string",
        "ScrapReasonDescription": "string",
        "ShiftDescription": "string",
        "TimeTypCdDescription": "string",
        "RowMod": "string"
      }
    ],
    "LaborDtlAttch": [
      {
        "Company": "string",
        "LaborHedSeq": 0,
        "LaborDtlSeq": 0,
        "DrawingSeq": 0,
        "XFileRefNum": 0,
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "ForeignSysRowID": "00000000-0000-0000-0000-000000000000",
        "DrawDesc": "string",
        "FileName": "string",
        "PDMDocID": "string",
        "DocTypeID": "string",
        "RowMod": "string"
      }
    ],
    "LaborDtlAction": [
      {
        "Company": "string",
        "LaborHedSeq": 0,
        "LaborDtlSeq": 0,
        "ActionSeq": 0,
        "ActionDesc": "string",
        "Required": true,
        "Completed": true,
        "CompletedBy": "string",
        "CompletedOn": "2024-05-25T15:38:16.879Z",
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "BitFlag": 0,
        "EmpBasicName": "string",
        "RowMod": "string"
      }
    ],
    "LaborDtlComment": [
      {
        "Company": "string",
        "LaborHedSeq": 0,
        "LaborDtlSeq": 0,
        "CommentNum": 0,
        "CommentType": "string",
        "CommentText": "string",
        "CreatedBy": "string",
        "CreateDate": "2024-05-25T15:38:16.879Z",
        "CreateTime": 0,
        "ChangedBy": "string",
        "ChangeDate": "2024-05-25T15:38:16.879Z",
        "ChangeTime": 0,
        "TaskSeqNum": 0,
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "DspChangeTime": "string",
        "DspCreateTime": "string",
        "TreeNodeImageName": "string",
        "IntExternalKey": "string",
        "TimeEntryCommentTypeList": "string",
        "CommentTypeDesc": "string",
        "BitFlag": 0,
        "RowMod": "string"
      }
    ],
    "LaborEquip": [
      {
        "Company": "string",
        "LaborHedSeq": 0,
        "LaborDtlSeq": 0,
        "EquipID": "string",
        "Hours": 0,
        "Qty": 0,
        "CurrentMeter": 0,
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "BitFlag": 0,
        "EquipLaborMeterOpt": "string",
        "EquipDescription": "string",
        "EquipMeterUOM": "string",
        "RowMod": "string"
      }
    ],
    "LaborPart": [
      {
        "Company": "string",
        "LaborHedSeq": 0,
        "LaborDtlSeq": 0,
        "PartNum": "string",
        "PartQty": 0,
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "DiscrepQty": 0,
        "DiscrpRsnCode": "string",
        "DiscrpAttributeSetID": 0,
        "ScrapQty": 0,
        "ScrapReasonCode": "string",
        "ScrapAttributeSetID": 0,
        "NonConfTranID": 0,
        "LaborAttributeSetID": 0,
        "MESProcessing": true,
        "RequestMove": true,
        "PartUOM": "string",
        "PartDescription": "string",
        "RevisionNum": "string",
        "DiscrepUOM": "string",
        "ScrapUOM": "string",
        "DiscrepAttributeSetDescription": "string",
        "DiscrepAttributeSetShortDescription": "string",
        "AttrClassID": "string",
        "LaborAttributeSetDescription": "string",
        "LaborAttributeSetShortDescription": "string",
        "ScrapAttributeSetDescription": "string",
        "ScrapAttributeSetShortDescription": "string",
        "DiscrepRevision": "string",
        "ScrapRevision": "string",
        "EnableDiscrpQty": true,
        "EnableScrapQty": true,
        "BitFlag": 0,
        "DiscrpRsnDescription": "string",
        "ScrapReasonDescription": "string",
        "RowMod": "string"
      }
    ],
    "LbrScrapSerialNumbers": [
      {
        "Company": "string",
        "LaborHedSeq": 0,
        "LaborDtlSeq": 0,
        "SerialNumber": "string",
        "PartNum": "string",
        "JobNum": "string",
        "AssemblySeq": 0,
        "OprSeq": 0,
        "EnableStatus": true,
        "SNStatus": "string",
        "SNStatusDesc": "string",
        "Selected": true,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "RowMod": "string"
      }
    ],
    "LaborDtlGroup": [
      {
        "Company": "string",
        "EmployeeNum": "string",
        "ClaimRef": "string",
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "BitFlag": 0,
        "RowMod": "string"
      }
    ],
    "SelectedSerialNumbers": [
      {
        "Company": "string",
        "SerialNumber": "string",
        "Scrapped": true,
        "ScrappedReasonCode": "string",
        "Voided": true,
        "Reference": "string",
        "ReasonCodeType": "string",
        "ReasonCodeDesc": "string",
        "PartNum": "string",
        "SNPrefix": "string",
        "SNBaseNumber": "string",
        "SourceRowID": "00000000-0000-0000-0000-000000000000",
        "TransType": "string",
        "PassedInspection": true,
        "Deselected": true,
        "KitWhseList": "string",
        "RawSerialNum": "string",
        "KBLbrAction": 0,
        "KBLbrActionDesc": "string",
        "PreventDeselect": true,
        "XRefPartNum": "string",
        "XRefPartType": "string",
        "PreDeselected": true,
        "poLinkValues": "string",
        "SNMask": "string",
        "NotSavedToDB": true,
        "RowSelected": true,
        "AttributeSetID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "RowMod": "string"
      }
    ],
    "SNFormat": [
      {
        "Company": "string",
        "Plant": "string",
        "PartNum": "string",
        "NumberOfDigits": 0,
        "SNMask": "string",
        "SNBaseDataType": "string",
        "SNFormat": "string",
        "LeadingZeroes": true,
        "SNPrefix": "string",
        "SNMaskSuffix": "string",
        "SNMaskPrefix": "string",
        "SNLastUsedSeq": "string",
        "HasSerialNumbers": true,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "BitFlag": 0,
        "PartPricePerCode": "string",
        "PartTrackLots": true,
        "PartTrackSerialNum": true,
        "PartTrackDimension": true,
        "PartSalesUM": "string",
        "PartIUM": "string",
        "PartSellingFactor": 0,
        "PartPartDescription": "string",
        "SerialMaskMaskType": 0,
        "SerialMaskMask": "string",
        "SerialMaskExample": "string",
        "SerialMaskDescription": "string",
        "RowMod": "string"
      }
    ],
    "TimeWeeklyView": [
      {
        "Company": "string",
        "EmployeeNum": "string",
        "WeekBeginDate": "2024-05-25T15:38:16.880Z",
        "WeekEndDate": "2024-05-25T15:38:16.880Z",
        "QuickEntryCode": "string",
        "WeekDisplayText": "string",
        "LaborType": "string",
        "ProjectID": "string",
        "PhaseID": "string",
        "TimeTypCd": "string",
        "JobNum": "string",
        "AssemblySeq": 0,
        "OprSeq": 0,
        "RoleCd": "string",
        "IndirectCode": "string",
        "HoursSun": 0,
        "HoursMon": 0,
        "HoursTue": 0,
        "HoursWed": 0,
        "HoursThu": 0,
        "HoursFri": 0,
        "HoursSat": 0,
        "TimeTypCdDescription": "string",
        "RoleCdDescription": "string",
        "IndirectCodeDescription": "string",
        "PhaseIDDescription": "string",
        "HoursTotal": 0,
        "ExpenseCode": "string",
        "Complete": true,
        "ResourceGrpID": "string",
        "ResourceID": "string",
        "OpCode": "string",
        "OpComplete": true,
        "LaborEntryMethod": "string",
        "LaborRate": 0,
        "ResourceGrpIDDescription": "string",
        "JCDept": "string",
        "TimeDisableUpdate": true,
        "ResourceIDDescription": "string",
        "ExpenseCodeDescription": "string",
        "LaborTypePseudo": "string",
        "Shift": 0,
        "ShiftDescription": "string",
        "MessageText": "string",
        "NewRowType": "string",
        "DisPrjRoleCd": true,
        "DisTimeTypCd": true,
        "DisLaborType": true,
        "EnableSubmit": true,
        "EnableCopy": true,
        "EnableRecall": true,
        "AllowDirLbr": true,
        "TimeStatus": "string",
        "ProjDesc": "string",
        "WBSPhaseDesc": "string",
        "OperDesc": "string",
        "ASMdesc": "string",
        "TimeAutoSubmit": true,
        "DeleteRow": true,
        "HCMTotWeeklyPayHours": 0,
        "RoleCdList": "string",
        "RowSelected": true,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "RowMod": "string"
      }
    ],
    "TimeWorkHours": [
      {
        "Company": "string",
        "CalendarID": "string",
        "WeekBeginDate": "2024-05-25T15:38:16.880Z",
        "WeekEndDate": "2024-05-25T15:38:16.880Z",
        "SunDisplayDate": "string",
        "MonDisplayDate": "string",
        "TueDisplayDate": "string",
        "WedDisplayDate": "string",
        "ThuDisplayDate": "string",
        "FriDisplayDate": "string",
        "SatDisplayDate": "string",
        "WeekDisplayText": "string",
        "SunWorkHours": 0,
        "MonWorkHours": 0,
        "TueWorkHours": 0,
        "WedWorkHours": 0,
        "ThuWorkHours": 0,
        "FriWorkHours": 0,
        "SatWorkHours": 0,
        "SunBookedHours": 0,
        "MonBookedHours": 0,
        "WedBookedHours": 0,
        "ThuBookedHours": 0,
        "FriBookedHours": 0,
        "SunDiffHours": 0,
        "MonDiffHours": 0,
        "SatBookedHours": 0,
        "TueBookedHours": 0,
        "TueDiffHours": 0,
        "WedDiffHours": 0,
        "ThuDiffHours": 0,
        "FriDiffHours": 0,
        "SatDiffHours": 0,
        "EmployeeNum": "string",
        "CalendarDescription": "string",
        "TotalWorkHours": 0,
        "TotalBookedHours": 0,
        "TotalDiffHours": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "RowMod": "string"
      }
    ],
    "ExtensionTables": [
      {
        "Table": [
          {
            "ColumnValues": [
              {}
            ],
            "RowMod": "string",
            "SysRowID": "00000000-0000-0000-0000-000000000000"
          }
        ],
        "SystemCode": "string",
        "TableName": "string",
        "Columns": [
          {
            "ColumnName": "string",
            "ColumnType": "string"
          }
        ],
        "PrimaryKeyColumns": [
          "string"
        ],
        "PeerTableSystemCode": "string",
        "PeerTableName": "string"
      }
    ]
  },
  "lWeeklyView": true
}

Notice at the very bottom:

        ],
        "PrimaryKeyColumns": [
          "string"
        ],
        "PeerTableSystemCode": "string",
        "PeerTableName": "string"
      }
    ]
  },
  "lWeeklyView": true
}

Thanks for the weekend reply. The issue I’m having is that this form isn’t available to debug in chrome so I’m relying on old tracing. I understand this is essentially the same process, but it’s somewhat still new for me.

My understanding is that when following a process you take the dataset from the previous step and pass it through to next step after changing the variables you desire. Apparently that’s either not the case if the previous dataset doesn’t include the necessary parameters, or Im missing a step.

It’s not always that straightforward.

What do you mean this form is not available to debug in chrome? What form are you trying to use?

Also, what tooling are you using? I can see your code, but that’s not standard function code, so where is this coming from?

What exact url are you using in Swagger, because that’s not what the endpoint should look like.

Just lay it all out like we’re 5 and we should be able to point you in the right direction.

Almost forgot. Welcome to the forum!

You’ll probably never leave. :rofl:

This ought to help you out.
That input object is not just the dataset.

It’s the dataset & a boolean inside another object.

{
    "ds": {...},
    "lWeeklyView": true
}

Ok let me give you a bit of advice that should help you immensely.

Abandon the REST methods. The REST methods were a game changer when they were released, and they were and still are very powerful. You can do anything you want with them, but we have better ways to do things now.

Encapsulate your logic inside an Epicor function. Then call the function via rest in your external program.

You can then inside the function, call the BO methods directly, and much more efficiently. You will also be less tightly coupled in your external app, as if functionality changes, you may only need to edit your function.


That being said, all the classic client stuff still works, so you can usually trace there. There are some minor differences where they have reworked a process sometimes, but for the most part it is the same.

If you insist on using the REST methods, I would use the V2 endpoints. You will need an API key for that. You will also need to use V2 to call functions.

2 Likes

Read that whole thread beginning to end. That should get you started.

There are a few other really good ones out there as well, they are just slipping my mind at the moment.

Back to your question, if you’re not getting errors, but it’s still not working as intended, I regret that I can’t help much more, as we don’t use this feature, and I’m not familiar with it enough to see what’s wrong.

I bet someone here is though.

I don’t insist on REST. I’m more than annoyed by it. I’ll definitely look into building a function to get this resolved. Thanks for the advice and I will gladly stop beating my head against that wall.

Turns out I enjoy the pain. I was able to get it updating as desired. Just needed to append jObject1 with lWeeklyView, as you mentioned, and use that DS on the SubmitForApproval step.

I wouldn’t have given up either.

You can now switch tactics at your leisure.