I have a question about updating InfoPath form templates in a SharePoint document library. The library has ~70,000 records (InfoPath forms). I updated the form template to include some additional columns and would like to apply this change to the previous records. Specifically, I would like the InfoPath XML files to contain the (empty) columns.
From testing, I see that publishing the form template, opening an older form, and either saving or submitting it will propagate the new columns to the XML. However, this is not practical for 70k records. I tried re-linking the forms, using C# CSOM to check-out/check-in all the documents, and using C# to save all the documents - none of these approaches worked. My understanding is that these didn't work because the form was never 'opened' in InfoPath (either in the browser or application), and so even though the form template was linked, it was never applied.
Is there a way to both link and apply a new InfoPath template to existing forms? The only option I can think is to write a script that opens each file in the InfoPath application and save/submits it to the existing library. However, I am unsure of how to do this or if it is even possible. The other option is to write a script which adds new XML fields to the existing documents, but would that not conflict with the new template? If anyone has any advice, it would be greatly appreciated.