Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, Nintex Podcast 2007 and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

Getting the Document Library URL

Last post 07-25-2008, 8:36 AM by JamesTyzack. 1 replies.
Sort Posts: Previous Next
  •  07-23-2008, 4:25 PM 827

    Getting the Document Library URL

    When creating an email, you can insert a number of fields - and make URLs for these.

    There is the ability to create a URL for the item, and for the site in which it resides.  However, there does not appear to be a field that you can insert for the Document Library or List URL.

    Also missing is the ability to insert a URL that goes to the folder that the document resides in

    Is it possible to either add these, or calculate them?

    Regards

    Tom

  •  07-25-2008, 8:36 AM 843 in reply to 827

    Re: Getting the Document Library URL

    Hi Tom,

    You should be able to build up links to the list or library by concatenating existing items.

    Web Url/lists/List Name - for a list

    Web Url/List Name – for a library

    To get a url to the folder, you could do a regular expression on the item url to get the folder part. You should be able to do it with one regular expression, but my reg ex knowledge is not that good so I had to do it in two steps J

    Reg Ex action 1:

    Pattern: ^.*/

    Replacement text: leave blank

    Input text: {Common:ItemUrl}

    Store result in: a variable called ‘filename’

    Reg Ex action 1:

    Pattern: {WorkflowVariable:filename}

    Replacement text: leave blank

    Input Text: {Common:ItemUrl}

    Store result in: a variable to hold your folder url.

    The first action will get the file name from the item url, and the second action will remove the filename from the entire url, leaving only the folder path.

    Finally, the SDK describes how a developer can create new custom insertable tokens that show up in the common list. This allows you to add any extra items that you need.

    regards,

    James

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems