Greetings. First post on this site for me. I have 15 InfoPath forms that I would like to deploy into multiple SharePoint environments. The forms each contain multiple data sources whose connection strings will vary based on where the forms are deployed. I don't want to have to go into each form and manually change all of the data source connection strings prior to publishing the forms in the new environments. A few questions from my brainstorming session on the best way to accomplish this:
1. Can data source connection strings be dynamic and set prior to method execution time?
2. Can data source connection strings use relative URL's rather than absolute?
3. If none, of the above is true, I could potentially write a utility that extracts the .xsn into its sub-parts, programmatically open the .xsf file, manipulate the .xsf, and then rejoin the files to one .xsn file. Is this a viable option? Is this the only option? If possible, is the .xsf file the only one that contains the URL for the data connection (it is the only one I have found that does but not 100%)?
Thanks in advance for any input.