This one has stumped me indefinitely... so I'm coming to the great guru's of the confusing concepts.
CASE:
I have an InfoPath form which is connected to a document library. Once the form is submitted, it will create a new form (like usual), and on create it initiates a WorkFlow which will turn into a huge complicated spaghetti bowl. However, the only thing I want is to increment an ID number of sorts (We'll call it f-number). It must be formatted with three digits (E.g. 042, 120, 002, etc.).
So, the steps:
- The f-number must be incremented from the previous item
- Formatted as a three-digit number
- Automatically populated inside the current item
ATTEMPTS:
I have created two columns inside the document library; the first is the calculated value of f-number + 1 (calc-f-number). The second is the formatted text (Using the TEXT([COLUMN], "000")) as three-digits(formatted-f-number). Then I created a separate custom list called AutoID with a column called prev-id-number. Inside is a single item with the ID number of the previous item. During the workflow, it is SUPPOSED to: (This is formatted like the WorkFlow for ease of translation)
- Set f-number inside Current Item based on:
- formatted-f-number column inside Document Library, by the Document Library ID equal to:
- the prev-id-number inside AutoID custom list that has ID equal to 1
- formatted-f-number column inside Document Library, by the Document Library ID equal to:
Then set the AutoID to the ID of the Current Item.
For some reason, when I try to select prev-id-number, it will only let me select ID, UI Version, URL Path, Item Type, Level and Path. Perhaps there is a MUCH MUCH simpler way to do this, but through the tiny bit of information research churned up this seemed like the only course of action.
QUESTION:
First and foremost, is there an easier way to do this?
Or how can I select prev-id-number? Could it be based on actual column TYPES? If so, why does WorkFlow only allow you to select certain column types?