Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

Retrieving multiple list item properties with site workflow

Last post 12-27-2012, 4:21 AM by user1000. 3 replies.
Sort Posts: Previous Next
  •  07-23-2012, 12:05 PM 24196

    Retrieving multiple list item properties with site workflow

    Hi there,

    i am trying to loop through a list with several items and, depending on a specific criteria (due date), sent a mail with detailed information for that list item. This should be something like a reminder for items with a due date eqaul today.

    I have build a site workflow that loops through the list and filters on items with a due date equal today and i store the list id in an collection. then i loop through this collection and sent an email for every item.

    I want do add further information regarding that list item in the mail - the only information i have is the item id. I would like to add title, due date etc. but i cannot figure out, how to get this info. Only the "id" is stored by the query list action and if i store further attributes, there is no link between them.

     Any ideas?

     

    Thanks in advance

    Christian

  •  08-08-2012, 1:28 PM 24412 in reply to 24196

    Re: Retrieving multiple list item properties with site workflow

    Hi Christian, 

    It is a bit more work to do, but not too difficult. I'm assuming you are working with a query list action first to go over the list? (If not, please advice, if so, please read on). 

    First, you will need to create some variables in which you want to store the results you get from the Query List action. These are for example TitleCollection, DueDateCollection... and are of the type collection. You will need some extra variables, to store the specific items in once you are going through the list (for example TitleItem, DueDateItem...), and a number variable to use as an indexer. 

    Next, after the query list you will need a foreach loop to go through each element in the list. We will let the for each loop through one of the collections, for example TitleCollection we got from the Query List. Fill in the following in the foreach loop action.

    Target Collection: TitleCollection
    Store result in: TitleItem
    Index: IndexVariable 

    Now, in the for each we can easily access the title we want through the TitleItem variable. To access the Due Date we want, we will need to use the Collection Operation action, which you can find in operations. There select as Target Collection DueDateCollection. Next, choose the GET option, and for index fill in the IndexVariable. As last option you specify to store the value in DueDateItem.

    Now in the foreach loop you can use both the TitleItem and DueDateItem to send an email message for example. When the loop goes to the next item, the index is increased by one, the Collection Operation will simply give you the next item in the DueDateCollection.

    I hope this is a bit clear on how to do it, if not please reply so I can give you a quick example.

    Thijs 

  •  12-27-2012, 3:47 AM 27176 in reply to 24196

    Re: Retrieving multiple list item properties with site workflow

    Hi,

    I was wondering the same question, and after making my workflow i want to publish my workflow but it returns the following error:

    Server was unable to process request. --> Failed to publish workflow: <Error><CompilerError Line="-1" Column="-1" Text="Compilation failed. There is not enough space on the disk.&#xD,&#xA"/></Error>

     Any Idea what this means/can be resolved?

     Thanks in advance!

  •  12-27-2012, 4:21 AM 27178 in reply to 27176

    Re: Retrieving multiple list item properties with site workflow

    Appareantly the server had no more space available (as i could see in the error).

    (RESOLVED)

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