• Exporting and Importing SharePoint Designer 2010 List Workflow

    Exporting and importing of the List Workflow to and from another list or site is actually a non-supported feature.

    However, there is a "workaround" to achieve this.

     

    1. In SharePoint Designer 2010, click on your completed List Workflow.
    2. Click on "Save" and "Publish" for the completed List Workflow.
    3. Next, click on "Export to Visio". Save the file as CompletedWorkflow.vwi or any preferred name.
    4. Then create a new "similar" list on the current site or on a new site collection. There is no way to import the exported visio into this new list.
    5. In SharePoint Designer 2010, click on this new list and then click on "List Workflow" to create a new workflow for this new list.
    6. Please make sure that you do not add any workflow steps!
    7. Click on "Save" and "Publish" for this empty List Workflow.
    8. Then, click on "Export to Visio" and save this as EmptyWorkflow.vwi or any preferred name.
    9. Rename both the vwi files by adding ".zip" extension. The files should be CompletedWorkflow.vwi.zip and EmptyWorkflow.vwi.zip.
    10. The objective is to replace the "workflow.xoml.wfconfig.xml" file from the EmptyWorkflow.vwi.zip into the CompletedWorkflow.vwi.zip.
    11. It is likely that you cannot replace it directly. Copy the file out to the desktop and then copy the file into the other zipped folder.
    12. Remove the ".zip" extension from the CompletedWorkflow.vwi.
    13. With this, we have a working importable visio List Workflow.
    14. Back in the SharePoint Designer 2010, close all the workflow tabs.
    15. Click on the "Import from Visio" and select the CompletedWorkflow.vwi.
    16. You have successfully export and import the List Workflow!
  • SharePoint Web Part Maintenance Page

    Web Part Maintenance page is one of the most important tip for SharePoint designers or developers.

    At times, when a Web Part is unable to be deleted via the page editing, you can use the Web Part Maintenance page.

    The Web Parts Maintenance page can be opened by appending "?contents=1" to any page that contains Web parts.

    http://technet.microsoft.com/en-us/magazine/gg153557.aspx

     

  • InfoPath Web Form repeating attachment error in SharePoint Server 2010

    Recently, I created a custom InfoPath form which worked fine on the preview. After publishing to a SharePoint List, the Web form's attachment control in a repeating section failed with the following error.

    "The security Validation for this page is invalid. Click back in your Web Browser, refresh the page and try your operation again"

    I made the following changes to fix the error.

    1. In the 14 hive, click on the TEMPLATE -> Layouts folder.
    2. Backup the formserver.aspx file as we will be editing this file.
    3. Edit the formserver.aspx using the notepad.exe.
    4. Under the < body runat="server" id="PageBody"> tag, add the following line of code.

    <SharePoint:FormDigest runat="server" />

    Retry the InfoPath web form, it should be working now.

  • Windows 8 RTM now available in MSDN and TechNet Subscriptions!

    For those developers and IT Pros with MSDN or TechNet Subscriptions, Windows 8 RTM is now available for downloads!

    http://blogs.msdn.com/b/windowsappdev/archive/2012/08/15/windows-8-rtm-is-available-for-developers.aspx