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

How do I build dynamic string of email addresses

Last post 06-27-2012, 2:21 PM by Vadim_Tabakman. 1 replies.
Sort Posts: Previous Next
  •  06-27-2012, 12:31 AM 23665

    Movie [~] How do I build dynamic string of email addresses

    Hello

     I have a multi choice selection box in infopath.  From the choices selected I need to query a secondary list to get corresponding email addresses and build a string so that this variable can be used in the To: field of the workflow notification.

     So far I have created an SitesAffectedCollection and queries the list to get the values selected.

    I then have a For Each loops through each item in the SitesAffectedCollection and then Query that queries the secondary list and brings back the corresponding email address.  Should I store these values in another Collection?

    I need to then build a dynamic string so that it concats each email into a string, seperating the values by a semicolon.

    HELP (ps I am not a developer by any stretch so I'm sorry if the answer is obvious!)

  •  06-27-2012, 2:21 PM 23682 in reply to 23665

    Re: How do I build dynamic string of email addresses

    Hi Natasha,

    Create yourself a text variable (something like textEmailAddresses).

    As you are using a For Each action to go through the collection, run your query and then have a Build String action that does the concatenation for you.

    Your Build String action would look something like this in the configuration:

    {WorkflowVariable:textEmailAddresses};{WorkflowVariable:textNewEmailAddress}

    and store the result back in the textEmailAddresses variable.

    What this is doing, is appending a semi-colon and the new email address to the existing variable.

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