Answers.Body: <p>Craft can now do this via the CLI</p>
  <p><a href="https://craftcms.com/docs/3.x/console-commands.html#resave-entries" rel="noreferrer">https://craftcms.com/docs/3.x/console-commands.html#resave-entries</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-01T16:07:46.867Z
Answers.Text: Does this trigger events like `Entry::EVENT_BEFORE_SAVE`? I can get the command line `resave/entries` to work but Events don't seem to be firing.
Answers.UserDisplayName: Kirk Roberts
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-20T17:03:43.877Z
Answers.LastActivityDate: 2021-01-20T17:03:43.877Z
Answers.UserDisplayName: Chris Rowe
Answers.Body: <p>If you re-save the section(s) that your entries are in, it should re-trigger a save of all of the entries.</p>
  
  <p>Hope that helps!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-10T00:02:12.197Z
Answers.Text: This is the correct answer, I don't see why it was down voted. Go to "Settings > Sections" and then the section containing your entries and hit save. This will trigger a bulk re-save of all of the entries.
Answers.UserDisplayName: Fyrebase
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-10T00:38:56.343Z
Answers.Text: ¯\_(ツ)_/¯ - got my upvote.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-10T14:32:47.270Z
Answers.Text: This did in fact resave all entries (there was a task that ran in my sidebar confirming as much: https://cl.ly/221m2V0p2i41). Didn't seem to trigger the onSaveEntry event though; my field's values have gone unchanged. Is this intentional or am I missing something?
Answers.UserDisplayName: Rob Erskine
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-01T10:02:01.047Z
Answers.Text: I have this exact problem with 2000+ entries, how did you eventually manage to do this? Re saving the section doesn't work
Answers.UserDisplayName: Branko
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-26T18:25:06.263Z
Answers.Text: This is a good solution, except it does not seem to resave the localized versions of each entry. Or am I missing something?
Answers.UserDisplayName: Alex Kendrick
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-14T10:46:36.550Z
Answers.Text: Two-year-ago Jake, you beauty. Thanks! Works great in Craft 3.
Answers.UserDisplayName: Jay
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-15T11:56:15.183Z
Answers.Text: on craft 3.2.10 saving the section has no effect on the search-index only the "craft resave/entries" command worked for me but there is no documentation for that
Answers.UserDisplayName: toy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-09T22:26:21.650Z
Answers.LastActivityDate: 2017-01-09T22:26:21.650Z
Answers.UserDisplayName: Jake Dohm
Body: <p>I have a site with a hundred+ or so entries. I've added a new field to my entry template, but it won't take effect until it's been activated by a <a href="https://craftcms.com/docs/plugins/hooks-and-events#listening-for-events" rel="noreferrer">onSaveEntry</a> event. </p>
  
  <p>I've gone through maybe 15 entries or so now and resaved them manually, but it's proving to be a long and painstaking process.</p>
  
  <p>Is there a way for me to batch resave all enabled entries in order to trigger this <code>onSaveEntry</code> event? </p>
  
Tags: <events><updates><onsaveentry>
Title: Bulk resave entries to trigger onSaveEntry event
ThreadText: # Bulk resave entries to trigger onSaveEntry event
  
  (Asked by: username_0 on 2017-01-09)
  
  I have a site with a hundred+ or so entries. I've added a new field to my entry template, but it won't take effect until it's been activated by a [onSaveEntry](https://craftcms.com/docs/plugins/hooks-and-events#listening-for-events) event.
  
  I've gone through maybe 15 entries or so now and resaved them manually, but it's proving to be a long and painstaking process.
  
  Is there a way for me to batch resave all enabled entries in order to trigger this `onSaveEntry` event?
  
  **Tags:** events, updates, onsaveentry
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2017-01-09. Score: 13 | Accepted answer
  
  If you re-save the section(s) that your entries are in, it should re-trigger a save of all of the entries.
  
  Hope that helps!
  
  > **Comments:**
  > **username_4**: This is the correct answer, I don't see why it was down voted. Go to "Settings > Sections" and then the section containing your entries and hit save. This will trigger a bulk re-save of all of the entries.  
  > **username_5**: ¯\_(ツ)_/¯ - got my upvote.  
  > **username_0**: This did in fact resave all entries (there was a task that ran in my sidebar confirming as much: https://cl.ly/221m2V0p2i41). Didn't seem to trigger the onSaveEntry event though; my field's values have gone unchanged. Is this intentional or am I missing something?  
  > **username_6**: I have this exact problem with 2000+ entries, how did you eventually manage to do this? Re saving the section doesn't work  
  > **username_7**: This is a good solution, except it does not seem to resave the localized versions of each entry. Or am I missing something?  
  > **username_8**: Two-year-ago username_3, you beauty. Thanks! Works great in Craft 3.  
  > **username_9**: on craft 3.2.10 saving the section has no effect on the search-index only the "craft resave/entries" command worked for me but there is no documentation for that  
  
  ---
  
  ### Answer by username_1 on 2021-01-20. Score: 5
  
  Craft can now do this via the CLI
  
  <https://craftcms.com/docs/3.x/console-commands.html#resave-entries>
  
  > **Comments:**
  > **username_2**: Does this trigger events like `Entry::EVENT_BEFORE_SAVE`? I can get the command line `resave/entries` to work but Events don't seem to be firing.  
  
  ---
  
  