Skip to main content
Nintex Community Menu Bar
Question

Separating a lazy approval and it's comment

  • February 11, 2025
  • 4 replies
  • 32 views
  • Translate

tony_monserrate
Forum|alt.badge.img+4

I am using lazy approval on a task. I have it set to capture “Comments including task metadata”.  This is what it looks like:

Monserrate, Tony (Approved) 2/11/2025 9:25:38 AM - 2/11/2025 9:26:52 AM - [800459]

 

I need to be able to grab that 800459 and put it in a variable so I can update it to a SharePoint column.

Did this topic help you find an answer to your question?

4 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2456 replies
  • February 11, 2025

Hi ​@tony_monserrate,

Welcome to the community.
You can use a regular expression action to extract the comment.
Pattern: (?<=\[)(.*?)(?=\])
The regular expression action will put the output into a collection, so use a get item from collection action to extract the text into a text variable.

Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 671 replies
  • February 24, 2025

Hi ​@tony_monserrate did Simon’s reply answer your question?

Translate

tony_monserrate
Forum|alt.badge.img+4

I used this to extract the number between the [].   \[(.*?)\]

Translate

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2456 replies
  • February 24, 2025

Hi ​@tony_monserrate,

It's great to hear that you found a solution.
The regular expression you are using matches the square brackets as well: Monserrate, Tony (Approved) 2/11/2025 9:25:38 AM - 2/11/2025 9:26:52 AM - [800459]

If you use the regular expression that I have provided, it matches just the number: Monserrate, Tony (Approved) 2/11/2025 9:25:38 AM - 2/11/2025 9:26:52 AM - [800459]

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings