Skip to main content
Nintex Community Menu Bar

Collection Variable in Email Notification

  • June 8, 2018
  • 6 replies
  • 126 views

Forum|alt.badge.img+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

Forum|alt.badge.img+14
  • Scholar
  • June 8, 2018

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


Forum|alt.badge.img+4
  • Author
  • June 9, 2018

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. 


Forum|alt.badge.img+4
  • Author
  • June 9, 2018

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


Forum|alt.badge.img+14
  • Scholar
  • June 11, 2018

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


Forum|alt.badge.img+4
  • Author
  • June 11, 2018

Thank You Marian.


Forum|alt.badge.img+14
  • Scholar
  • June 11, 2018

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