Trigger custom code on existing Webform Submissions I have created a custom Webform handler which submits the Webform data to an external webservice via SOAP. All is working but now I need to submit (to the same external web service) all the older Webform submissions that were received before I enabled my custom handler. 

My current custom handler has my custom SOAP code wrapped in the function 

public function preSave(WebformSubmissionInterface $webform_submission)


(I'm using the preSave function as the Webform is a multipage form.) 

I was just wondering what function I should use to run the same SOAP code on existing submissions? 

As I know the range of submission ID's that are affected, is there code that can loop through the submissions and trigger the code based on the Submission ID? 

Or alternatively, as there only about 20 of the older submissions, I could open and save each one to trigger a Handler based on submission update - in which case, what is the function call I need to wrap my SOAP code in the custom handler? 

Thanks

F
Just install devel php run your code and then uninstall it. 
https://www.drupal.org/project/devel_php  As it is great for quick adhock tasks. 

but yep keep back up of your database ect.