(imported topic written by sinucus)
I’m trying to track some information via Client Settings and I’m having some problems with it.
My action code is as follows;
setting “__Version”=“May15” on “{parameter “action issue date” of action}” for client
setting “__ActionCount”="{if (not exists setting “__ActionCount” whose (exists value of it) of client) then “1” else if (value of setting “__Version” of client as string = “May15”) then (value of setting “__ActionCount” of action as integer + 1) else “1”}" on “{parameter “action issue date” of action}” for client
When I run it for the first time on a computer it works. The “not exists” check is working just fine.
Command succeeded setting “__Version”=“May15” on “Wed, 28 May 2014 18:27:27 +0000” for client (action:37831)
Command succeeded setting “__ActionCount”=“1” on “Wed, 28 May 2014 18:27:27 +0000” for client (action:37831)
But when the value exists it doesn’t work. I’m unsure why.
Command succeeded setting “__Version”=“May15” on “Wed, 28 May 2014 18:28:09 +0000” for client (action:37832)
Command failed (Relevance substitution failed) setting “__ActionCount”="{if (not exists setting “__ActionCount” whose (exists value of it) of client) then “1” else if (value of setting “__Version” of client as string = “May15”) then (value of setting “__ActionCount” of action as integer + 1) else “1”}" on “{parameter “action issue date” of action}” for client (action:37832)
Here are QnA results, as you can see the if then appears to run correctly and and QnA results return proper values, but it still fails. Any idea why?
q: value of setting “__Version” of client as string = “May15”
A: True
T: 0.207 ms
I: singular boolean
q: value of setting “__ActionCount” of client
A: 1
T: 0.141 ms
I: singular string
q: value of setting “__ActionCount” of client as integer + 1
A: 2
T: 0.164 ms
I: singular integer