cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Number Range

former_member187270
Participant
0 Kudos

Hi Experts,

, , , , ,

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.

                                                        or

Is there any alternate way to achieve this.

Thanks,

Quddus.

Accepted Solutions (1)

Accepted Solutions (1)

stefankrauth
Active Participant
0 Kudos

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,
Stefan

former_member187270
Participant
0 Kudos

Hi Stefan,

For the first time it has overwrite successfully but after few days it started give trouble and I am overwriting the contact id field in "Before Save" event at Root level.

So, I would like to know can we stop creating contact with standard number range.

As per your suggest i have used BC set but i am getting error.

Can you please let me know how you have identified Object Name of contract Number Range.

i.e, "NumberRange.DrawNumber("CONTRACT")

Thanks,

Quddus.

former_member200567
Active Contributor
0 Kudos

Hi Md,

Have you created a BC View?

Please look at the following section in Studio Documentation.

8.2.3.7 Create a Business Configuration View

Here is how to user NumberRage by Horst.

Best Regards

Fred

Answers (0)