Crow Canyon Software Forum

Forum Navigation
Please or Register to create posts and topics.

Function selection issue for extracting text from lookup column values like "22;#James Restivo"

I encountered an issue when trying to extract the display text from a lookup column value formatted as "22;#James Restivo" in my workflow.

According to the official documentation, the $formatvalue function is designed specifically for this purpose - to strip SharePoint's leading information from lookup/person columns and return just the display value (e.g., "James Restivo").

However, when I used $formatvalue in my workflow, it didn't work as expected. The function failed to extract the text portion.

After troubleshooting, I successfully extracted the text using the $regextract function instead.

My questions are:
1. Why might the $formatvalue function not work in workflow scenarios when the documentation indicates it should handle this exact use case?
2. What are the specific applicable scenarios or requirements for the $formatvalue function to work properly?
3. Are there any known limitations or configuration requirements I might be missing?

 

Hi Polyethene,

We are unable to reproduce this behavior locally in NITRO Workflows. Could you please share the following details so that we can further investigate the issue?

  1. The expression related to formatvalue function you have used in the workflow that is not giving the expected results

  2. Your SharePoint version(SP Online, SP 2019, SP 2016 etc) and NITRO Studio version

Once we have these details, we can further investigate this.

  1. I uploaded two screenshots: one shows that formatvalue did not extract any result, while the other shows that regextract successfully extracted the expected value.
  2. I'm using SharePoint Online with Nitro Studio version V2.7.11.0.
Uploaded files:
  • formatvalue.png
  • regextract.png

Hi Polyethene,

We are currently unable to reproduce this issue. To further investigate, could you please share the column settings for the ‘Project’ column?

Please follow these steps:

  1. Go to the list → List SettingsNITRO Form Settings.
  2. Select the column ‘Project’.
  3. Click Edit on the right panel.
  4. Share a screenshot of the column settings, similar to the example below.

 

Uploaded files:
  • Screenshot-2025-11-03-192618.png