Verify and Upload a Form Template
Scenario/Problem: You need to verify and upload a form template to InfoPath Form Services.
Solution: Use the Test-SPInfoPathFormTemplate and Install-SPInfoPathFormTemplate PowerShell cmdlets to verify and upload the form template.
Forms that have code-behind or that require Full Trust permissions cannot be published directly to SharePoint. These forms must be published to a network location and then uploaded to Form Services. Before uploading, verify that the form is correct and can be installed.
To verify a form template, use the following cmdlet:
Test-SPInfoPathFormTemplate-Path "<<full path to InfoPath form template>>"
To upload a form to InfoPath Form Services, use the following cmdlet:
Install-SPInfoPathFormTemplate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access