Shubham Jadhav
05/30/2024, 2:57 PMconst requestBody = {
        "platformMsgs:upsertList": {
          $attributes: {
            'xsi:type': 'platformMsgs:UpsertListRequest'
          },
          record: [
            {
              $attributes: {
                'xsi:type': 'tranEmp:TimeBill',
                externalId: data.externalId,
                recordType: 'timeBill' // Include recordType here
              },
              employee: {
                $attributes: {
                  internalId: data.employee.internalId,
                  'xsi:type': 'platformCore:RecordRef'
                }
              },
              tranDate: data.tranDate,
              approvalStatus: {
                $attributes: {
                  internalId: data.approvalStatus.internalId,
                  'xsi:type': 'platformCore:RecordRef'
                }
              },
              customer: {
                $attributes: {
                  internalId: data.customer.internalId,
                  'xsi:type': 'platformCore:RecordRef'
                }
              },
              caseTaskEvent: {
                $attributes: {
                  internalId: data.caseTaskEvent.internalId,
                  'xsi:type': 'platformCore:RecordRef'
                }
              },
              hours: {
                $attributes: {
                  'xsi:type': 'platformCore:Duration'
                },
                timeSpan: data.hours.timeSpan,
                unit: data.hours.unit
              },
              isBillable: data.isBillable,
              department: {
                $attributes: {
                  internalId: data.department.internalId,
                  'xsi:type': 'platformCore:RecordRef'
                }
              },
              rate: data.rate
            }
          ]
        } };