Auto increment does not work when a new record is added through business process

I implemented the auto numbering logic in client side. I am noticing that the Code is generated when the record is added manually. But not when record is added via a business process.

1. Record created by business process has empty code value

2. Created Manually

3. Business process

 

Like 0

Like

9 comments

Hello,

 

There are several ways of implementing numeration for records. Can you please specify how the numeration was added? Numeration functionality depends on how it was added. 

 

Best regards,

Angela

Angela Reyes,

 

I followed the client side implementation given in the article (Link). I created the code mask and last number system settings and added the code given in the article and changed the column name to UsrName - (Application Number).

 

Thanks 

Ramnath

RAMNATH SHARMA,

If you want to add records via business process it is better to use an example described in CASE IMPLEMENTATION ALGORITHM: SERVER-SIDE part of the link. This is happening because the code that should number records is not triggered when it is created via a process. Server-side implementation should fix it. 

 

Best regards,

Angela

Angela Reyes,

 

I have tried the server side implementation algorithm. But it does not seem to work right now. It also does not show any error while saving and publishing the object. There is no error on console in browser while adding a record manually.

I tried to see if I have missed anything but could not find any mistake. I can share screenshots of changes I have made in the object.

 

Thanks 

Ramnath

RAMNATH SHARMA,

 

Yes please provide us with screenshots of all settings you've set on your side so to create the auto-numeration.

 

Best regards,

Oscar

Oscar Dylan,

 

Here are the screen shots

1. Object in which I am implementing numeration - https://prntscr.com/synbnw

2. Column name - https://prntscr.com/synbo3

3. Event handler - https://prntscr.com/syncls

4. Process-

 a. Signal - https://prntscr.com/syncpl

 b. Conditional flow - https://prntscr.com/syncq1

 c. Script task 1 - https://prntscr.com/synd3h

 d. User task - https://prntscr.com/syndj2, user task code - https://prntscr.com/syndlq

 e. Script task 2 - https://prntscr.com/syndo8

 

Let me know if links are not working as I am not much familiar with Lightshot. 

 

Thanks 

Ramnath

 

Hello RAMNATH,

 

In this case you need to implement the Server Side logic, also when you generate records from some external integration, the Client side just works when the record is created inside the section.

 

Kinds Regards from Chile!

Julio.Falcon_Nodos,

I have tried the server side implementation but it does not work.

You can see the details of settings in the images I have shared above.

Regards

Ramnath

RAMNATH SHARMA,

If the process is added to "Before Record Adding" then it should trigger for processes. If this does not happen to try to debug this by using server-code debugging: 

https://academy.creatio.com/documents/technic-sdk/7-16/server-code-debugging

Show all comments