# Copy Structure

## <span class="mw-headline" id="bkmrk-what-it-does-1">What it does</span>

Will copy all fields except files and pictures, but all sub child entities (1 level, non recursive).

## <span class="mw-headline" id="bkmrk-how-to-invoke-1">How to invoke</span>

The page is called with the command: **dk.tempusserva.codeunit.common.PageCopyStructure**

Takes the following parameters

- SagID
- DataID

The user activating the function must have the group specified in "AllowCloneGroup"

Example of usage:

```
main?command=dk.tempusserva.codeunit.common.PageCopyStructure&SagID=10&DataID=100
```

Button for the function can be created using a "Action button: Button: Parameterized URL"

Example of URL pattern

```
main?command=dk.tempusserva.codeunit.common.PageCopyStructure&SagID=10&DataID=[DataID]
```

## <span class="mw-headline" id="bkmrk-configuration-1">Configuration</span>

<span class="mw-headline">\[All possible configurations and where to edit them\]</span>

## <span class="mw-headline" id="bkmrk-developer-info-1">Developer info</span>

- <span class="mw-headline">Type: [CodeunitPagecontent](https://docs.tsnocode.com/books/codeunit-reference/chapter/pagecontent)</span>
- <span class="mw-headline">Security: \[eg. requires admin or session\]</span>
- <span class="mw-headline">Classpath: dk.tempusserva.codeunit.common.PageCopyStructure</span>