---
title: "Create a record from another record"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/automation/record-rules/create-a-record-from-another-record/
type: task
application: platform
last_updated: 2026-12-03
commit: 6777698daac5
---


Set this up when agents need a button that turns one record into another, or fills one record from another. The field maps decide what is copied, and a table operation runs the copy. Interactions already have this for every work type.

<Callout type="info">
  **Changed in 2027.1.** An operation's **Roles** and **Condition** are now also checked when it runs.
</Callout>

## Before you begin

- You need the `administrator` role to create the table operation. Users with `application_administrator` or `configuration_administrator` can maintain the maps afterwards.
- Know the source table and the target table by name, not label, for example Incident and ITSMRequest.
- Know which source fields go to which target fields. The names do not have to match.

## Steps

<Steps>
  <Step>
    In the Administration workspace, go to **Catalog & templates → Record rules → Reclassification field map**.

    <Image src="asset:screenshots/admin/automation-record-rules-create-a-record-from-another-record/reclassification-field-map-menu.png">The Reclassification field map item in the Record rules section of the Catalog & templates menu.</Image>
  </Step>
  <Step>
    Create one map for each field to copy. Set **Source table**, **Source field**, **Target table** and **Target field**. Set **Special type** for journal, HTML and attachment fields. The fields are described in [Reclassification field maps](page:automation/record-rules/reclassification-field-maps).

    <Image src="asset:screenshots/admin/automation-record-rules-create-a-record-from-another-record/new-reclassification-field-map.png">The empty Create Reclassification field map form, with Source table, Source field, Target table, Target field and Special type.</Image>
  </Step>
  <Step>
    If the same pair of tables needs a second set of maps for another button, give those maps a **Unique map** name.
  </Step>
  <Step>
    Go to **Scripting & automation → Scripts → Table operations** and create an operation on the source table. Set **Operation type** to Execute on server and choose where it shows. See [Table operations](page:automation/scripts/table-operations).

    <Image src="asset:screenshots/admin/automation-record-rules-create-a-record-from-another-record/table-operations-menu.png">The Table operations item in the Scripts section of the Scripting & automation menu.</Image>
  </Step>
  <Step>
    In **Server script**, call `ReclassificationUtil.reclassifyRecord` with the source record, the source table and the target table. It returns the ID of the new record.

    ```javascript
    var newRecId = ReclassificationUtil.reclassifyRecord(current, "Incident", "ITSMRequest");

    answer = [{
        id: newRecId
    }];
    ```
  </Step>
  <Step>
    To apply only the maps of one **Unique map**, pass its name as a fourth argument.
  </Step>
  <Step>
    In **On success**, open the new record with `Navigate.to({ urlElements: ["ITSMRequest", response.id, viewAspect] });`.
  </Step>
  <Step>
    Save the operation and test it on a record in a test instance.
  </Step>
</Steps>

## Result

The button appears on the source records. When an agent selects it, Servicely creates the target record with the mapped fields and opens it. Change the maps later to change what is copied, without touching the operation.

## Variations

### Update an existing record

To fill a record that already exists, pass the unique map, `true` and the target record's ID. Servicely uses this to resolve a record on zero contact.

```javascript
ReclassificationUtil.reclassifyRecord(current, "Incident", "ITSMRequest", "ZeroContactResolved", true, existingTargetId);
```

The arguments, in order, are:

1. the source record
2. the source table
3. the target table
4. the unique map, or `null` for the default maps
5. `true` to update rather than create
6. the ID of the record to update

## Related

- [Reclassification field maps](page:automation/record-rules/reclassification-field-maps)
- [Table operations](page:automation/scripts/table-operations)
- [How classification and resolution work](page:applications/interactions/classify-resolve-and-field-mapping)
