Save InfoPath Attachment to SharePoint 2010 Document Library


I have a requirement where the business needs to save an attachment form InfoPath form to SharePoint document library direct.

1: Build the InfoPath form

Create three fields

  • WebSiteURL: string
  • DocLibName: string
  • Attachment: base64Binary

2: Build the Web Service

3: Connect InfoPath to Web Service

For more information, Calling Web Service from InfoPath 2010 with Parameters

4: Verify

Download source files (InfoPath & Web service)

Advertisements

3 thoughts on “Save InfoPath Attachment to SharePoint 2010 Document Library

  1. This is terrific. But I am such a beginner, I must ask: How do you turn that code into a Web Service?
    Can you tell me what I must do?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s