# How to update already existing documents after adding a new attribute to document type

**URL:** <https://community.bloomreach.com/t/how-to-update-already-existing-documents-after-adding-a-new-attribute-to-document-type/1354>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [August 23, 2019, 2:02pm UTC](https://community.bloomreach.com/t/how-to-update-already-existing-documents-after-adding-a-new-attribute-to-document-type/1354 "2019-08-23T14:02:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keshav.yerra](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@keshav.yerra](https://community.bloomreach.com/u/keshav.yerra)\
**Post date:** [August 23, 2019, 2:02pm UTC](https://community.bloomreach.com/t/how-to-update-already-existing-documents-after-adding-a-new-attribute-to-document-type/1354/1 "2019-08-23T14:02:05Z")

</div>

I have added a new attribute to one of my document type. But i have to manually go to that particular document of that document type and edit save it for the new attribute to show up on the node in console.  
Is there any alternative for this to update/refresh all the documents in one go?  
Preferably using a groovy script?

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [August 23, 2019, 2:14pm UTC](https://community.bloomreach.com/t/how-to-update-already-existing-documents-after-adding-a-new-attribute-to-document-type/1354/2 "2019-08-23T14:14:38Z")

</div>

Yes. Groovy script is the way. 😉

Woonsan
