cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom Numbering Provider - Auto Sequence

Custom Numbering Provider - Auto Sequence

In Vault 2020 functionality to develop a custom numbering provider has been added which is great! The INumberProvider interface gives a NumberProviderRequest as an input to the custom provider. The input can be combined with your own logic and on the end the GenerateNumbers function is returning a NumberProviderResponse which holds the newly generated number(s).

 

The NumberProviderRequest gives access to the fields which are used to create a custom naming scheme using the custom number provider, but if the custom naming scheme has an auto-sequence field, this field doesn't return any value. Although I understand the custom number provider is completely responsible to generate a number, I would like to request a change to the functionality to get an auto generated number from the auto sequence field. This would allow to modify the request, for example, to add delimiters to the auto generated number. (0000001 --> 00.00.01), which isn't possible using the OOTB numbering schemes. Delimiters can be added in a scheme, but auto generated numbers don't go 'over' the delimiter.

 

Example to receive the value of a field from the the request:

 

This one is working properly:

string wg = request.Fields.Where(x => x.Type == FieldType.WorkgroupLabel).FirstOrDefault().Value;

This one doesn't return a value: (can this be modified in future versions of Vault 2020?)

string autoNumber = request.Fields.Where(x => x.Type == FieldType.Autogenerated).FirstOrDefault().Value;

Sample of the custom numbering scheme using the custom number provider:

CustomNumberingProvider.png

 

2 Comments
rbergsma
Participant

Many customers need this functionality, because their ERP-systems need it.

 

 

psaarloos
Collaborator

Hi,

 

One addition from myself. It would make perfectly sense to me if the request would contain the generated file name according to the configured scheme. In the sample dialog it would be: 'SAMPLE-00000001'.

 

In the support case I raised before adding this idea, it was mentioned the Custom Number Provider is completely responsible for generating numbers, but in that case the created numbering scheme based on the custom provider wouldn't make any sense...

 

Would it be possible to add a 'GeneratedNumber' property or something like that to the NumberProviderRequest object, which contains the generated number according to the numbering scheme?

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea