# Bulk set attribute value?

**URL:** <https://forums.losant.com/t/bulk-set-attribute-value/4421>\
**Category:** Help\
**Tags:** device\
**Created:** [March 23, 2022, 2:11pm UTC](https://forums.losant.com/t/bulk-set-attribute-value/4421 "2022-03-23T14:11:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Calderon](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jonathan\_Calderon](https://forums.losant.com/u/Jonathan_Calderon)\
**Post date:** [March 23, 2022, 2:11pm UTC](https://forums.losant.com/t/bulk-set-attribute-value/4421/1 "2022-03-23T14:11:37Z")

</div>

Hello! I wanna know if exist a way to do a bulk with an option like “Set values attributes”. I was reading the documentation [https://docs.losant.com/devices/bulk-actions/](https://docs.losant.com/devices/bulk-actions/) but i don’t find a answer to my problem. I have 500 devices aprox and i need set a initial value.  
Thanks 🙂

---

<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 23, 2022, 2:29pm UTC](https://forums.losant.com/t/bulk-set-attribute-value/4421/2 "2022-03-23T14:29:12Z")

</div>

We don’t have a first-class method for setting a ‘default’ value on a device attribute. You could, however, write a simple workflow to get that value in there …

1. [Virtual Button Trigger](https://docs.losant.com/workflows/triggers/virtual-button/).
2. [Device: Get Node](https://docs.losant.com/workflows/data/get-device/) that fetches the devices you want to set the value for.
3. [Loop Node](https://docs.losant.com/workflows/logic/loop/), running in [parallel mode](https://docs.losant.com/workflows/logic/loop/#run-loop-iterations-in-parallel), iterating over the devices returned by the Device: Get Node.
4. (In the loop) [Device: State Node](https://docs.losant.com/workflows/outputs/device-state/) reporting the value for the attribute in question, for the current iteration’s device.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Calderon](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jonathan\_Calderon](https://forums.losant.com/u/Jonathan_Calderon)\
**Post date:** [March 23, 2022, 2:32pm UTC](https://forums.losant.com/t/bulk-set-attribute-value/4421/3 "2022-03-23T14:32:18Z")

</div>

Thanks Dylan, i will do a workflow to solve it 🙂
