Skip to main content
Nintex Community Menu Bar
Solved

How to Display Choice Field in Email

  • Sep 20, 2016 6:16 AM UTC
  • 4 replies
  • 295 views
  • Translate All

Forum|alt.badge.img+4

The problem is that Choice Field Nintex Workflow email shows too much script to end user so how this can be corrected to look like nicer and like a normal email.

This how it looks now in email: 
{"__metadata":{"type":"Collection(Edm.String)"},"results":["iPhone","LG","Windows"]}

Best answer by bamaeric

Hi Sari,

You can get the choices to display a better format by following these steps:

  1. Add the "Set Workflow Variable" action to you workflow and configure it with these options:
    1. Variable = Text variable you created
    2. Value = Configure with these options:
      1. Click "Advanced Lookup"
      2. Equals = List Lookup
      3. Source = Current item
      4. Field = Your choice field in the list
      5. Click the Fx button to the right of Field and select "Choices, Comma Delimited" from the dropdown.
      6. Click the Insert button.
  2. This will result something like iPhone,LG,Windows.
  3. You can clean this up with a Regular Expression to add spaces after the commas and store the result in your Workflow Variable.
  4. Add the Workflow Variable to you email and you should be good.
View original

4 replies

bamaeric
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Answer
  • Sep 26, 2016 7:09 PM UTC

Hi Sari,

You can get the choices to display a better format by following these steps:

  1. Add the "Set Workflow Variable" action to you workflow and configure it with these options:
    1. Variable = Text variable you created
    2. Value = Configure with these options:
      1. Click "Advanced Lookup"
      2. Equals = List Lookup
      3. Source = Current item
      4. Field = Your choice field in the list
      5. Click the Fx button to the right of Field and select "Choices, Comma Delimited" from the dropdown.
      6. Click the Insert button.
  2. This will result something like iPhone,LG,Windows.
  3. You can clean this up with a Regular Expression to add spaces after the commas and store the result in your Workflow Variable.
  4. Add the Workflow Variable to you email and you should be good.
Translate

  • Jun 6, 2017 4:57 PM UTC

This worked! Awesome! thanks for the post.

Translate

mikeatnationwid
Forum|alt.badge.img+4

Just tripped over this issue and found this solution.  Incredibly simple!  Thanks!

Translate

Forum|alt.badge.img
  • Rookie
  • Dec 14, 2021 4:34 PM UTC

Thank you for sharing. Such a short and sweet fix.

Translate