---
title: "Codeunit 1006 Copy Job"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1006-copy-job/
type: codeunit
id: 1006
name: "Copy Job"
app: "Base Application"
namespace: Microsoft.Projects.Project.Job
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1006-copy-job/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 1006 Copy Job

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1006-copy-job/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Projects.Project.Job |
| Versions | 17-28 |
| Source file | Projects/Project/Job/CopyJob.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CopyJob | (Record Job, Code[20], Text[100], Code[20]) | - | public | 17-22 | Pending 20.0 | Pending removal, use CopyJob with TargetJobSellToCustomer as a argument instead. |
| CopyJobTasks | (Record Job, Record Job) | - | public | 17-28 | - | - |
| CopyJobPlanningLines | (Record Job Task, Record Job Task) | - | public | 17-28 | - | - |
| SetCopyQuantity | (Boolean) | - | public | 17-28 | - | - |
| SetCopyJobPlanningLineType | (Option) | - | public | 17-28 | - | - |
| SetCopyOptions | (Boolean, Boolean, Boolean, Option, Option, Option) | - | public | 17-28 | - | - |
| SetJobTaskRange | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetJobTaskDateRange | (Date, Date) | - | public | 17-28 | - | - |
| CopyJob | (Record Job, Code[20], Text[100], Code[20], Code[20]) | - | public | 20-28 | - | - |
| SetCopyPrices | (Boolean) | - | public | 23-28 | - | - |
| GetJobTaskDateRange | (var Date, var Date) | - | public | 26-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCopyJob | (var Record Job, Record Job) | 17-28 | - | - |
| Integration event | OnAfterCopyJobTask | (var Record Job Task, Record Job Task, Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCopyJobPrices | (var Record Job, var Record Job) | 17-28 | - | - |
| Integration event | OnCopyJobPlanningLinesOnBeforeModifyTargetJobPlanningLine | (var Record Job Planning Line) | 17-28 | - | - |
| Integration event | OnCopyJobPlanningLinesOnAfterCopyTargetJobPlanningLine | (var Record Job Planning Line, Record Job Planning Line) | 17-28 | - | - |
| Integration event | OnCopyJobPlanningLinesOnAfterSourceJobPlanningLineSetFilters | (var Record Job Planning Line) | 17-25 | - | - |
| Integration event | OnCopyJobTasksOnAfterSourceJobTaskSetFilters | (var Record Job Task, Record Job) | 17-28 | - | - |
| Integration event | OnAfterCopyJobDimensions | (Record Job, var Record Job) | 18-28 | - | - |
| Integration event | OnAfterCopyJobTaskDimensions | (Record Job Task, Record Job Task) | 18-28 | - | - |
| Integration event | OnBeforeCopyJobTasks | (var Record Job, var Record Job, var Boolean) | 20 | - | - |
| Integration event | OnBeforeCopyJob | (Record Job, Code[20], Text[100], Code[20], Code[20], Boolean, Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeExchangeJobPlanningLineAmounts | (var Record Job Planning Line, Code[10], var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeCopyJobTasks | (var Record Job, var Record Job, var Boolean, Boolean, Boolean, Boolean, Code[20], Code[20], Option, Option) | 21-28 | - | - |
| Integration event | OnCopyJobPlanningLinesOnAfterTargetJobPlanningLineInsert | (var Record Job Planning Line, Record Job Planning Line) | 21-28 | - | - |
| Integration event | OnCopyJobPlanningLinesOnBeforeTargetJobPlanningLineInsert | (var Record Job Planning Line, Record Job Planning Line) | 21-28 | - | - |
| Integration event | OnCopyJobTasksOnBeforeTargetJobTaskInsert | (var Record Job Task, Record Job Task, var Boolean) | 21-28 | - | - |
| Integration event | OnCopyJobPlanningLinesOnBeforeTargetJobPlanningLineInit | (var Record Job Planning Line, Record Job Planning Line, Record Job Task, var Boolean) | 22-28 | - | - |
| Integration event | OnCopyJLEsToJobPlanningLinesOnBeforeValidateQuantity | (var Record Job Planning Line, var Boolean, var Boolean) | 25-28 | - | - |
| Integration event | OnCopyJobPlanningLinesOnAfterSourceJobPlanningLineSetFilters | (var Record Job Planning Line, Boolean) | 26-28 | - | - |
| Integration event | OnCopyJobOnBeforeTargetJobInsert | (var Record Job, var Record Job) | 26-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
