You are viewing limited content. For full access, please sign in.

Question

Question

Cloud - Use case issue - Need to work with an internal Ticket Number on requests submitted by Forms.

asked on May 2, 2022

My client has a process where users submit requests (LF Forms) and they need an internal Request ID to manage these requests (like a ticket number for support request).

These requests are submitted through several business processes, each request get assigned with an internal Request ID.

Currently we use a table hosted by Laserfiche Cloud.

  • Each time a new request is submitted, we retrieve the latest Request ID in the table
  • We calculate the new Request ID (current Request ID + 1)
  • We insert a new line with the new Request ID (and other data related to the submitted request).

My concern is that, from time to time, 2 requests are submitted at the same time, and got assigned with the exact same Request ID, which creates issues later in other processes.

 

I tried to find a solution that would prevent these duplicated ID from happening but I can not find one that works 100% and with a "useful" Request ID.

  • This Request ID needs to stay basic (1, 2, 3, ...), so we can not use the instance ID generated by Laserfiche (such as ae89010c-9b4c-470d-b89f-ff5063995b23).
  • I wanted to use the "_key" that exists in LF tables, but when rows are inserted, they don't contain a basic incremented integer (1, 2, 3...) but a random value (see column TEST_key)

  • Any other solution I have in mind might result in having 2 workflows running at the exact same time and generating the same Request ID for 2 different requests (use the number of rows in the table, store the Request ID in a field on a dedicated document in the repository...)

 

Any idea/help would be really appreciated!

1 0

Replies

replied on May 2, 2022

I agree, this would be very useful. Right now we just have a SQL table, but would like to move towards a full Cloud solution.

0 0
replied on June 22, 2023

Hi Pierre,

Have you thought of creating the number like this:

Let's assume your current field is TicketNr & the value is: current Request ID + 1

 

now you create a new field & for this purpose we call it Test

In Test under Advanced you put this formula: =CONCATENATE(TicketNr,SECOND(NOW()))

 

This will take the second of current time & concatenate it to the value in TicketNr, so lets say:

Current Request ID: 202301

TicketNr: 202301+1 = 202302

Second now is: 23

Value in Test: 20230223

 

If you want, you can put a seperator like "-" so value is: 202302-23

 

Now the chance of 2 people opening it at exact second is far less than your current scenario...

 

Hope this helps...

S

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.