Tutorials
Migrate an InfoPath form
Upload an InfoPath expense report (.xsn), check the analysis, import it as a UserTasks form with its line items, totals and rules, and finish what did not convert.
On this page
Goal: rebuild an InfoPath expense report (a repeating table of line items, a total and a few rules) as a UserTasks form. Reference: Import InfoPath forms.
You need: forms.edit. For step 4's data table you also need data.create and workflows.create.
Time: 10 minutes.
1. Upload the template#
- Go to Build › Forms and select Import → InfoPath form (.xsn).
- Drop Expense Report.xsn on the box. If the file is over 4 MB, export the source files from InfoPath Designer, zip them and upload the .zip instead.
UserTasks unpacks the template and reads its views, data source, rules and validation. Nothing is stored.
2. Read the review#
- Views → forms shows 1 → 1: the form has one view.
- Fields includes 1 repeating → Lists. The Line items table becomes a List with Date, Description, Category, Qty, Unit price and a calculated Line total (
quantity * unit_price). - Rules converted shows 4 of 5. Open Full report to see each one: the cost center rule, the large-report warning (over USD 5,000), the submit button and the Manager role check convert. A query of the Projects SharePoint list needs attention.
- The Preview shows the form as it will look.
3. Import#
Leave One form per view selected, then select Import and Open in the designer.
4. Keep the submissions (optional)#
Import again with Create a data table for the submissions ticked, and choose Update the form made then when asked. You get an Expense Report submissions table, a child table for the line items, and a draft workflow Expense Report: save submissions. Open the workflow in Automations → Workflows, check it, and publish it.
5. Finish what didn't convert#
- In the designer, open the Rules tab. Turned-off rules show what InfoPath did in their Notes.
- Refresh projects queried a SharePoint list. Export the list from SharePoint as CSV or Excel and import it as a data table named Projects (New table → Create from file; see Import from CSV or Excel), then import the form again: the rule becomes a Table list step. Or give the Project field options from the table.
- Managers see status checks the InfoPath role Manager: it now reads
user.roles contains "Manager". Create a workspace role called Manager (Settings → Roles) and give it to the right people. - Select Preview, add two line items (for example 2 × USD 45.00 and 1 × USD 120.00) and check the total is USD 210.00.
What you built#
- A UserTasks form rebuilt from the InfoPath template: fields, a line-items List with a calculated column, a total, defaults and rules.
- Optionally, a submissions table, a line-items child table and a draft save workflow.
- A list of what still needs a person, with the original InfoPath expressions in the rules' notes.
Next steps#
- Build an approval workflow to send the report for approval.
- Form rules for everything the Rules tab can do.