# Cloning of device attribute to another (one, many, but not ALL as in device recipe)

**URL:** <https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412>\
**Category:** Feature Request\
**Tags:** device\
**Created:** [March 15, 2022, 11:29pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412 "2022-03-15T23:29:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Cruz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/jose_cruz/32/1580_2.png) [@Jose\_Cruz](https://forums.losant.com/u/Jose_Cruz)\
**Post date:** [March 15, 2022, 11:29pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/1 "2022-03-15T23:29:55Z")

</div>

Greetings. If not already, it would be a good suggestion to be able to `Clone` a single device’s attribute(s) individually (not as a whole ‘recipe’) to other device(s). There are many attributes, during development, that one find needing in another at a later time and, depending on development case, have to ‘duplicate’ manually from device to device during said development. Just a 💭 . 🔴

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [March 15, 2022, 11:34pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/2 "2022-03-15T23:34:06Z")

</div>

Is your use case something you could accomplish with our [Bulk Device Update](https://docs.losant.com/devices/bulk-actions/#update-devices) feature?

---

<div class="post-metadata">

**Author:** ![Jose\_Cruz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/jose_cruz/32/1580_2.png) [@Jose\_Cruz](https://forums.losant.com/u/Jose_Cruz)\
**Post date:** [March 18, 2022, 8:11pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/3 "2022-03-18T20:11:44Z")

</div>

@Dylan_Schuster , thanks for the reply - if I’m not mistaken, the **Bulk Device Update** feature is very close; it will let you add/remove/etc attributes to more than one device _‘from scratch’_. But can I simply _‘clone’_ an **existing attribute** of a device to another, for example (⚠ illustration purpose only, not found on Losant…yet 😃 …):  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/5/54d2ba12991e265049c831f0bedba7630e033ae6.png)  
Maybe an ‘addition’ to the Bulk feature… 🔴

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [March 18, 2022, 8:15pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/4 "2022-03-18T20:15:31Z")

</div>

I see what you mean. You are right, that is not directly supported by the bulk device update feature.

While you could put the steps into a workflow to, say, get the attribute object out of the source device and then add it to another device, I think it would be a better use of your time to just manually do the cloning in this case. But I’ll make a request for a feature that would get you what you’re after - whether it’s cloning an attribute from one device to another or some other sort of “attribute template” feature. Thanks for the input.

---

<div class="post-metadata">

**Author:** ![Jose\_Cruz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/jose_cruz/32/1580_2.png) [@Jose\_Cruz](https://forums.losant.com/u/Jose_Cruz)\
**Post date:** [March 19, 2022, 6:10pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/5 "2022-03-19T18:10:39Z")

</div>

Awesome, thanks 👍 🔴

---

<div class="post-metadata">

**Author:** ![Wesley\_Manning](https://avatars.discourse-cdn.com/v4/letter/w/ba8739/32.png) [@Wesley\_Manning](https://forums.losant.com/u/Wesley_Manning)\
**Post date:** [May 9, 2024, 9:37pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/6 "2024-05-09T21:37:15Z")

</div>

We often run into case where we add attributes to the device recipe and then want to update existing devices to use the new attributes. It’s a pain especially with attribute tags.

It would be ideal to have a way to clone attributes from device recipes as well. Or even an option to update a device to match another device or a device recipe.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [May 10, 2024, 2:07pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/7 "2024-05-10T14:07:21Z")

</div>

I agree; this is a request we got somewhat frequently. I will add your +1 to it.

In the meantime, are you aware of our [bulk device update](https://docs.losant.com/devices/bulk-actions/#update-devices) feature? If you’ve left the “DeviceRecipe” tag on devices created from the recipe, it would be simple to target the devices that were created from the recipe and add new attributes through this tool. That is the best workaround I can propose in the meantime.

---

<div class="post-metadata">

**Author:** ![Wesley\_Manning](https://avatars.discourse-cdn.com/v4/letter/w/ba8739/32.png) [@Wesley\_Manning](https://forums.losant.com/u/Wesley_Manning)\
**Post date:** [May 10, 2024, 4:22pm UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/8 "2024-05-10T16:22:40Z")

</div>

I am familiar with the device bulk update and have been using it.

Although it works good, it’s not ideal as I still have to copy all the attributes and their tags and could make a mistake. We do leave the DeviceRecipe tag on all our devices.

We tend to have the device recipe be the truth for all our devices. Although in some cases we modify attribute tags to customize per device sometimes.

---

<div class="post-metadata">

**Author:** ![dom\_salvator](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dom_salvator/32/4808_2.png) [@dom\_salvator](https://forums.losant.com/u/dom_salvator)\
**Post date:** [June 11, 2024, 4:38am UTC](https://forums.losant.com/t/cloning-of-device-attribute-to-another-one-many-but-not-all-as-in-device-recipe/4412/9 "2024-06-11T04:38:08Z")

</div>

Thanks for raising this. Cloning individual attributes across devices would indeed be a great addition. While the bulk update feature helps, having a straightforward cloning option would save a lot of time and reduce errors. I support this feature request. But for now, manually cloning attributes seems to be the best work around, but an ‘attribute template’ feature would be ideal.

Thanks for considering this.
