How do you know how to set up getnextnumber?
Posted: May 25th, 2022, 10:31 am
Lets say your a new developer and working on adding onto an existing application. There is an Insert service to the [AddressBook] table, but it needs a value for the AddressId. Someone told you that it needs a nextnumber and to use the GetNextNumber service.
Here is how that service is set up: After looking at that, you realize its also at the bottom of the insert service: now this brings up some questions:
How would you know what to put in that service?
But you dont realize that this location your working on it NOT the place where records originate. There is another in a batch job called something like "Customer Import" that has the prefix set to AB for Address Book.
What happens if you use 2 GetNextNumber services interchangeably like that and they have inconsistent data? Should there be a way for EASYProcess to show in the recommended values what could be put there so there is only 1 way to set up for the table addressbook?
Here is how that service is set up: After looking at that, you realize its also at the bottom of the insert service: now this brings up some questions:
How would you know what to put in that service?
- What is type? there are no recommended values
- how do you know what the startfrom is? that seems like a dynamic number that should change
But you dont realize that this location your working on it NOT the place where records originate. There is another in a batch job called something like "Customer Import" that has the prefix set to AB for Address Book.
What happens if you use 2 GetNextNumber services interchangeably like that and they have inconsistent data? Should there be a way for EASYProcess to show in the recommended values what could be put there so there is only 1 way to set up for the table addressbook?