15.4. Testing Your Custom Action

To test your custom action, you must create these items:

  • A list or document library.

  • A workflow in SharePoint Designer that uses your action and is attached to the list or document library.

  • A list item or document in the list or document library.

15.4.1. Creating a Custom List

Because it is easier to test using a custom list, create a custom list by opening your browser and navigating to your SharePoint site. Choose Create from the Site Actions menu. If you cannot see the Site Actions menu, log in to the site as a site owner. Once you click Create, the Create page is displayed (see Figure 15-13). Depending on your edition of SharePoint and optionally installed features, you may have more or fewer options displayed on the Create page.

Figure 15-13. Figure 15-13

Choose Custom List under the Custom Lists column. On the New page, enter WorkflowTestList as the name of the list, keep the default values for the other controls, and then click Create. The All Items page is displayed.

To test your custom action, you will need to create a column for each property on the custom action. To create a new column, select Create Column from the Settings menu, and the Create Column page will be displayed (Figure 15-14). Create the five columns in the following table, using the values provided:

Column NameType
SiteUrlSingle line of text.
SiteTitleSingle line of text. ...

Get Professional Microsoft® SharePoint® Designer 2007 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.