# Create record from another one

**URL:** <https://discuss.emberjs.com/t/create-record-from-another-one/14282>\
**Category:** Ember Data\
**Created:** [February 22, 2018, 8:22pm UTC](https://discuss.emberjs.com/t/create-record-from-another-one/14282 "2018-02-22T20:22:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gagagast](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/gagagast/32/13663_2.png) [@gagagast](https://discuss.emberjs.com/u/gagagast)\
**Post date:** [February 22, 2018, 8:22pm UTC](https://discuss.emberjs.com/t/create-record-from-another-one/14282/1 "2018-02-22T20:22:37Z")

</div>

Hi, I try to create a model in a route file using data from an another record…  
What is the best way to achieve this aim ?  
I tried this :

```javascript
model(params) {
    return this.store
      .find("challenge", params.template_id)
      .then(template => this.store.createRecord("challenge", template.toJSON())
      );
  },

```

But the nested data dissapears…  
Thx.
