--- title: "CopyUpFromTemplate" slug: "copyupfromtemplate" updated: 2025-07-14T12:21:31Z published: 2025-07-14T12:21:31Z canonical: "docs.datajet.app/copyupfromtemplate" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # CopyUpFromTemplate Copies fields in specified field template from foreign table to primary table | Key | Value(s) | Description | | --- | --- | --- | | method | "CopyUpFromTable" | Copies fields in specified field template from foreign table to primary table | | targetTable | "TableToCopyFieldsTo" | | | template | "FieldTemplateName" | | | overwrite | true/false | | | dataset{} | | | | prefix | "Prefix" | Optional. If provided, new fields will be prefixed with this value. From **v7.2.28** | | project | "Project name" | | ```json { "method": "CopyUpFromTemplate", "targetTable": "HEADER_SAMPLE", "template": "tn-PPI", "overwrite": false, "project": "DataCleanAndInspect" } ``` Template: ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1697914335830.png) Source Table: ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1697914279793.png) Target Table:![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1697914489643.png) ## Related - [Copy Up (F->P)](/copy-up.md)