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 ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.