Collection Variable in Email Notification


Badge +4

Hello, how to use collection variable in Email Notification ? Is it possible in nintex workflow ? 

Site workflow runs every hour queries lib and collections the files with status = Ready and sends email to AD group stating that files are Ready. I want the list of items that are collected to be displayed in email notification. 


6 replies

Userlevel 5
Badge +14

depends on what output/formatting you require...

- you can put collection variable reference directly into mail body an you will get semicolon separated list of collection elements

- if you just need to output each collection element on single line you can use regular expression action to turn semicolons into line feeds and then put its output into mail

- if you require some more advanced formatting you will need to iterate over the collection, process each single element separately and prepare output step by step into  text variable. then send content of text variable in mail

Badge +4

HI Marian, 

Thank you for reply. I am trying to query the library, absolute url and collect the files with status= Ready using collection variable  and use that var in email body to display the list of files. When i use the variable its giving the urls without break. 

Badge +4

Hi Marian,

The email body looks like this.It is separated by semicolon but i want each item to be to in single line.

https://xyx.com/sites/test/lib1/filename1.xlsb;https://xyx.com/sites/test/lib2/filename2.xlsb

Userlevel 5
Badge +14

as I advised above

- if you just need to output each collection element on single line you can use regular expression action to turn semicolons into line feeds and then put its output into mail

216427_pastedImage_1.png

Badge +4

Thank You Marian.

Userlevel 5
Badge +14

please mark correct answer if you've got resolved your problem.

Reply