> For the complete documentation index, see [llms.txt](https://atd-dts.gitbook.io/atd-knack-operations/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atd-dts.gitbook.io/atd-knack-operations/vision-zero-in-action/batch-copy-process-for-vza-assignments.md).

# Batch Copy Process for VZA Assignments

The document will guide you through the process to batch copy Vision Zero assignments.

\
Purpose&#x20;
-------------

To copy a batch of assignments to eliminate form entry.

## Process

1\) Open the **Assignments** object in Records View

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MfJ7tl_3kyi00p65jvq%2F-MfJiHi3RmqLTA_vw93t%2Fimage.png?alt=media\&token=8fdc352b-795c-4566-98e3-2ec90ee5ca12)

2\) Exports all records as CSV to create a backup.

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MfJ7tl_3kyi00p65jvq%2F-MfJi56ng2tQWN1AfGQz%2Fimage.png?alt=media\&token=94bdfbd0-70fe-4ddd-a6be-8a826d96b660)

3\) Filter assignments for the previous 8 or 12 weeks (Sun/Mon to Monday) using the <mark style="color:blue;">Assignment Date Time</mark> field.

Ex. <mark style="color:blue;">Assignment Date Time</mark> is after 01/01/2022 **20:00** (before start of Sunday-Monday overnight shift) and <mark style="color:blue;">Assignment Date Time</mark> is before 02/28/2022 **04:01** (after 4am Monday when the overnight shift ends)

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2Fp8WdXq4dhSmUcFjp7PvN%2Fimage.png?alt=media&amp;token=d1617e96-13e7-456e-b932-810b396d4d86" alt=""><figcaption></figcaption></figure>

4\) Export records to CSV. \~ 286 records

5\) Open CSV in Excel and save on the Network Drive as Assignments\_Export\_Date

`G:\ATD\ATD_GIS\02_ENT_APPLICATIONS\app_VZA_Vision_Zero_in_Action\Schedules\Assignments`

6\) Save As Assignments\_Import\_Date

7\) Insert a column to the left of `Assignment Date Time`, column B, and enter formula:&#x20;

`=(LEFT(C2,10))+84` for 12 weeks. **Format the column as a Short Date**. Fill Down the column. This gives us our new start date.

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2FP8NoM8EUVHMp7oH6WQTK%2Fimage.png?alt=media&amp;token=9043321d-8347-468c-b047-8f82391f2c44" alt=""><figcaption></figcaption></figure>

8\) Insert a column to the left of `Assignment Date Range` , column D, and enter formula:&#x20;

`=(RIGHT(E2,10))+84` . **Format the column as a Short Date**. Fill Down the column. This gives us our new end date.

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2FcTTvSouqfNGq3kE1eNXf%2Fimage.png?alt=media&amp;token=1ca534ad-a228-49a4-a7e2-34c381c45c35" alt=""><figcaption></figcaption></figure>

9\) Insert a column to the left of Assignment Time Range, column F, and enter formula:

\=LEFT(G2,5) . Fill Down the column. This gives us our start time.

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2F6evuaFFCzHHl6MzvUXW4%2Fimage.png?alt=media&amp;token=d5720ba8-f2d4-4433-a645-71d2adf46144" alt=""><figcaption></figcaption></figure>

10\) Insert aother column to the left of Assignment Time Range, column G, and enter formula:

\=RIGHT(H2,5) . Fill Down the column. This gives us our end time.

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2FG3fIgWCrgTUIGqNY1hUl%2Fimage.png?alt=media&amp;token=d7ec27d0-3a34-42a6-b039-f3d5385cf723" alt=""><figcaption></figcaption></figure>

11\) Insert a new column to the left of Assignment Date Time, column C, and enter formula: `=CONCATENATE(TEXT(B2,"mm/dd/yy")&" "&TEXT(G2,"hh:mm")&" to "&TEXT(E2,"mm/dd/yy")&" "&TEXT(H2,"hh:mm"))`. Fill Down the column. This combines our new dates with the start & end times.

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2F5MYupKlGvW25PlUzsfSR%2Fimage.png?alt=media&amp;token=9d527d16-4a9a-45d3-a127-aee32cd9e227" alt=""><figcaption></figcaption></figure>

12\) Remove the old <mark style="color:blue;">Assignment Date Time</mark> column header from column D and title the new column C with <mark style="color:blue;">Assignment Date Time</mark>.

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2FK5vtXQ8Ky8iTJYDRKhF2%2Fimage.png?alt=media&amp;token=218c844b-a3e3-48b8-8ab4-b717bba6cc1d" alt=""><figcaption></figcaption></figure>

13\) Copy the text values from columns B, G, E, & H into Assignment Start Date, Assignment Start Time, Assignment End Date, and Assignment End Time, columns J, K, L, & M respectively at this point. Paste as values. Format Assignment Start Date and End Date as Short Dates.

We should be able to concatenate these new fields for the new Assignment Date Time for future VZA batch imports to make things easier.

<figure><img src="https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzNSSXajDFpzOv2IhIv%2Fuploads%2F9pJn9yrPYuyb3EBDGkYX%2Fimage.png?alt=media&amp;token=e3a27531-0a47-4127-8b61-2d3e9c24acd0" alt=""><figcaption></figcaption></figure>

14\) Update the **`Created Date`** and **`Created By`** for the first row. **`Created By`** should be your email. Fill down both columns.&#x20;

15\) Save and Import the CSV  into the Assignments object by clicking on Import in the Assignments object Records view.&#x20;

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MfJ7tl_3kyi00p65jvq%2F-MfJhEyeHcJklZtXDruT%2Fimage.png?alt=media\&token=3bee386b-b070-4a91-9a66-71810ad461ec)

16\) Import the modified CSV import file.

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MfJ7tl_3kyi00p65jvq%2F-MfJijRvzXyc6DNvfhNx%2Fimage.png?alt=media\&token=bd8d066f-77a9-4bfe-a393-7df8e400ab16)

17\) For *Does the CSV have a row at the top with a name for each column?* Choose - Yes, the headers are on Row 1

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MfJ7tl_3kyi00p65jvq%2F-MfJixgT1VGrbmmAznCi%2Fimage.png?alt=media\&token=4e134a42-da91-4490-951b-553f4fe252f8)

18\) Do you want to update existing assignments records with this import? Choose - No, you want to insert each row as a new record

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MfJ7tl_3kyi00p65jvq%2F-MfJj56f8VJKkjmUVkLJ%2Fimage.png?alt=media\&token=64e88f32-d2a7-4976-8e0a-0483e60df481)

19\) Confirm the field mapping of the columns and set the `Created By` to Email.

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MfJ7tl_3kyi00p65jvq%2F-MfJky2eKWCydfpPH-41%2Fimage.png?alt=media\&token=7080008c-1501-4409-94d3-58b7ab5b8e58)

20\) Uncheck `Modified By` and `Modified Date`. Click **Next** and **Start Import**. The records will be imported into the object.&#x20;

![](https://3087753818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzNSSXajDFpzOv2IhIv%2F-MfJ7tl_3kyi00p65jvq%2F-MfJm-zEevKYbN21lwGc%2Fimage.png?alt=media\&token=797c6de7-8697-459a-97ec-ae5d691b9239)

21\) Confirm all the records have been imported and data populated by filtering the Created Date and checking the Assignments Calendar.
