Skip to Content

Custom Number Range

Hi Experts,

@Stefan Krauth, @Fred K, Former Member, @Horst Schaude, @Alessandro Iannacci, Former Member

I have requirement which i need to contact which custom number range. To achieve this i though of crating business configuration set due to some issues i dropped the idea and thought of achieving it through custom work centers.

Below is the image of custom work center in which i am increasing counter value(i.e, contact value when ever contact is created and updating it with web service).).

To achieve this i have extended the contact screen and written logic in after modify script. Below is the image for reference.

I want to know whether it is right way to overwrite the stander value with custom value. Here i am facing issue because it long time to save the contact. Is there any way to stop creation of contact with standard number range. Please help me if any one come across this type of requirement.


Is there any alternate way to achieve this.



finetune.PNG (11.3 kB)
finetune1.PNG (39.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 26, 2015 at 04:32 PM

    Hi Quddus,

    Is the contract saved with the custom ID? The standard BO determines the ID when the object is saved. I don't know if a custom ID is taken over.

    You should not use a webservice to update your number range BO. Please stick to the NumberRange.DrawNumber() reuse library. You can call "NumberRange.DrawNumber("CONTRACT") and simply add the LowNumber. This will ensure you get a new ID every time. It's also much faster and reliable.

    I would have used a BC set with three columns OBJECT, LOW, HIGH. Then query for the object directly, read the LOW number and add DrawNumber(OBJECT) to it. That's the ID.

    Best Regards,

    Add comment
    10|10000 characters needed characters exceeded