Copy Attachment URL

With the Copy Attachment URL plug-in, you can copy a URL to an attachment in a specified Ws.Attachment Control and place it into a SharePoint List or Document Library.

Download example (.wssln file)

Copy Attachment URL properties

Property

Description

binding

The binding to the Ws.Attachment Control in your form.

Example: my:AttachmentControl

description

The description to use in the Link that will be delivered to the SharePoint Column.

Example: This is my weekly status report.

field

The name of the SharePoint Column in which the URL will be written to.

Example: MySharePointColumn

list

The name of your SharePoint Document Library or List where the URL will be written to. If the value is not provided, it will default to the Current Items list.

query

The Query to run on the destination list to write to a specific line item

Example: [MySharePointColumn]==@[MyInfoPathField]

site

The URL of the Site where the specified destination list is held. This is not the direct link to the actual SharePoint List or Document Library.

Example: http://servername/sites/FormEx

Inserting and configuring the Copy Attachment URL Plugin

  1. In Designer, add a Plugin Node to your workflow.

  2. Select the Plugin Node added previously.
  3. In the Properties Pane, configure the Property PlugInName to Copy Attachment URL


  4. In the Properties Pane, below the PluginName property, select the ValuePairs.

  5. Select the Name property and select site from the drop down.

  6. In the Value field, enter the URL to the SharePoint Site where the SharePoint List/SharePoint Document Library resides.

  7. Click Add to add a new argument.
  8. Next to the name Property, click the arrow and then select list.


  9. In the Value field, enter the Name of the SharePoint Document Library/SharePoint List as it appears in SharePoint. Click OK.


  10. Click Add to add a new argument.
  11. Next to Name, click the arrow, and then select field.


  12. In the Value field, enter the Name of the SharePoint Column to which the URL will be written.


  13. Click Add to add a new argument.
  14. Next to Name, click the arrow, and then select binding.


  15. In the Value Property, enter the binding of the Ws.Attachment Control in your form.


  16. Click Add to add a new argument.
  17. Next to Name, click the arrow and then select description.


  18. In the Value field, enter a description for the URL.

  19. Click OK, and then and Publish your Winshuttle Solution.