I’ve tried without the .toNumber()
I’ve tried with the .toNumber() at the end.
I’ve tried encasing everything in brackets, so: {{(checkcredits.contact_credits_month_use.toNumber() + $_GET.records_number)}}
I’ve even tried using setValue with the type output as number on the first value, another on the second value, and then a third adding these together in setValue to see if it was an issue within the DB Query Manager. No luck.
When I build the action, it initially looks like this, that it is combined:
But when I then go back into the action after saving it, it’s suddenly split:
And turns into this code: checkcredits.contact_credits_month_use +records_number.toNumber()
Can anyone check this is working on their end, noting this is in SC not AC. I use NodeJS, too.
I was assigning dynamic values, this is where it hasn’t been working for me. Let me try again i’ll just recreate your static example, instead of dynamic and see if that works.
out of curiosity - is there a chance that when displaying the SC on the F/E - it’s rendering the value correctly, but it doesn’t on the Server side? I’m not displaying this ever on the FE it’s all for SC actions…
Sorry mate, a very busy time of the year. I am assuming that either one or both of the dynamic values need to be changed to numeric. Pay particular attention to the $_GET value as this is usually a string value.
Seems overkill but I did the following to get it working:
Convert the $_GET into a number value.
Then in the setValue for the $get value I format that to a number
Then in the second setValue step I get the value from the db and format that to a number
then the third setValue step I get the first setValue, convert to a number again then + the second setValue, convert to a number again and it worked…
Happy that it’s working, but must look at refining this a little. Thanks both again.