Jump to content

Unable to append (integer) to integer field - is this bug or by design?


Recommended Posts

I have cases where I want to tally things (e.g. to count how many sub-tickets are created from the Problem record). At the right time, the workflow tries to append a '1' to a field that already contains one or more '1's.

image.png.f2c5795d30b9d6ec1c1d77003267d40e.png

image.png.2bc5af28cb379baeb669269181f1d44f.png

image.png.d5d913cf97e9c062f5efd14baad11552.png

It doesn't work. I only ever have one '1' in that field. My logica is that it's an integer field, '1' is an integer and the resulting field contents of '11' or '111' are integers so this should work.

I have another workflow that tallies the number of times a standard change template is used and that does work. The config is the same as above but using Custom G (a text field):

image.png.eacaa2c3390f1b9ad57d9abf7d724586.png

My request therefore is why are integers not appending?

If by design, why?

If bug, kindly rectify?

 

Link to comment
Share on other sites

2 hours ago, Berto2002 said:

My logica is that it's an integer field, '1' is an integer and the resulting field contents of '11' or '111' are integers so this should work.

Appending is a function that only applies to strings. This will absolutely not work. This is neither a bug nor by design, it's fundamental to the difference between a number and a string.

Pre-empting the next question, we do not guarantee that this idea will work for a string either (see previous discussions)

While the workflow is perfectly capable of appending text to a text (or varchar) field, using it in this manner conflicts with the codeless environment ethos and while there is no issue when using this  function as designed - for example appending the Customer's name to the Summary field - there are scenarios where appending multiple values to the same field will not produce the desired results.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...