Help Center>Foundation Help

Applies to:

  • Winshuttle Foundation

PublishForm

The Publish Form operation allows you to manually publish InfoPath forms to SharePoint sites. You can configure a batch file to publish a form to multiple SharePoint sites, without going through the Winshuttle Workflow user interface.

Usage

The following example publishes the form "mocRequestForm.xsn" to the SharePoint site using the administrator account:

svadm.exe –o publishform –url http://acme/sv/Chemforms -form "mocRequestForm.xsn" -user administrator -password 123pd -domain Acme

Note: The form will have the same name as the file used to publish it.

The following example publishes the same form as the previous example, but in addition causes the replacement strings in replace.xml (specified below) to happen automatically:

svadm.exe –o publishform –url http://acme/sv/Chemforms -form "mocRequestForm.xsn" -user administrator -password 123pd -domain Acme –replacementfile replace.xml

<Replacements>
<Replacement>
<Search>http://www.mystagingserver.com (http://www.mystagingserver.com)</Search>
<Replace>http://www.myproductionserver.com (http://www.myproductionserver.com)</Replace>
</Replacement>
<Replacement>
<Search>http://www.myotherserver.com (http://www.myotherserver.com)</Search>
<Replace>http://www.yetanotherserver.com (http://www.yetanotherserver.com)</Replace>
</Replacement>
</Replacements>

Options

Name

Description

Required

-domain

The domain of the user account to use when publishing.

No

-form

The path to the form XSN file to publish.

Yes

-password

The password of the user account to use when publishing.

No

-replacementfile

An XML file describing replacement strings to apply to the process before doing the publication.

No

-url

The URL of the Workflow site to which to publish the form.

Yes

-user

The user name of the user account to use when publishing.

No