Skip to main content
Nintex Community Menu Bar

Adding a letter prefix and year suffix to a field numbering sequence

  • Dec 10, 2020 3:38 PM UTC
  • 4 replies
  • 103 views
  • Translate All

ncocchiara_77
Forum|alt.badge.img+2

I created a form and workflow for a SharePoint list.  I set up a calculation to populate a field with the next number using a next number list, variables, and math function in the workflow to calculate the next number for a new form entry.  The problem is, the user wants a location prefix (I have a field for location on the form) before the number, along with the current year after the number, so that the format for the next number will be: NYC_100_2020.  Can anyone help me with this?

4 replies

Forum|alt.badge.img+11
  • Scholar
  • Dec 10, 2020 4:20 PM UTC

Not sure how your workflow looks, however in my case I added a build string action to add my text + nextnumber save it in a variable and then update my field with that variable containing CAR_001, CAR_002 etc

 

9667iD271BE7AA4566567.png

 

Translate

ncocchiara_77
Forum|alt.badge.img+2

The attachment below is how I made my workflow.  Where would you place the build string operation?

 

 

Translate

Forum|alt.badge.img+11
  • Scholar
  • Dec 11, 2020 12:52 AM UTC
Right after update SAR item list action and Before you update the form field action.
Translate

Forum|alt.badge.img+12
  • Scholar
  • Dec 11, 2020 6:18 PM UTC

@Nunezma …can't you use ID column? It's going to always unique and incremental.

Translate