The CreatorCon Call for Content is officially open! Get started here.

Incrementing System Properties integer value by multiple users causing duplicate values

joachimfmen
Tera Contributor

Hello everyone!

 

I have a flow in flow designer that increments a value in system properties. This value should be readily available to users and every user should get a unique incremented value in a sequence. However, I am running into a problem where multiple users are accessing the same variable from system properties and are receiving duplicate values

 

This variable should increment every time a unique user accesses it, however when multiple users access it at the exact same time through a flow in flow designer, they receive the same value.

Does anyone have any ideas or experience regarding this issue, it would be greatly appreciated!

 

Thank you!

- Joa

1 ACCEPTED SOLUTION

G Ponsekar
Giga Guru

Hi @joachimfmen ,

 

You'll need to create a custom flow action for this as you'll need to create a mutex. A mutex will ensure exclusive access to the resource and ensure each time it's accessed, a unique value is provided.

 

Can you check this community thread: https://www.servicenow.com/community/developer-forum/incrementing-system-properties-integer-value-by....

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

View solution in original post

2 REPLIES 2

G Ponsekar
Giga Guru

Hi @joachimfmen ,

 

You'll need to create a custom flow action for this as you'll need to create a mutex. A mutex will ensure exclusive access to the resource and ensure each time it's accessed, a unique value is provided.

 

Can you check this community thread: https://www.servicenow.com/community/developer-forum/incrementing-system-properties-integer-value-by....

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

Ankur Bawiskar
Tera Patron
Tera Patron

@joachimfmen 

this seems to be a duplicate thread.

Your other thread already has response.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader