In this post we will discuss how to create a data connection from a SharePoint list in InfoPath 2010. Also check out my previous posts on:
Follow below steps:
Open InfoPath (Start -> All Programs -> Microsoft Office -> Microsoft InfoPath Designer 2010), then select Blank Form and Click on Design Form.
From the Ribbon select Data tab and select Data Connections as shown in the figure below:
In the Data Connections wizard click on Add... as shown in the figure below:
In the next step select Create a new connection to Receive data and click on Next as shown in the figure below:
In the next step select SharePoint library or list and click Next as shown in the figure below:
In the next step give the SharePoint site details and Click on Next as shown in the fig below:
Then Select the list from which you want to bind the data as shown in the fig below:
In the next step, select the fields which you want to retrieve and sort order and click on Next as shown in the fig below:
Then click on Next and do not modify anything for Store a copy of the data in the form template.
Then give a name for the data connection and select the checkbox Automatically retrieve data when form is opened as shown in the fig below and click on Finish.
This creates a data connection.