This is in Kinetic - Application Studio.
I’m trying to get the past year’s worth of rows by subtracting a year from a datetime variable, but I don’t know the correct way of writing that expression.
Looking at how Constant.Today is formated (2025-01-08T00:00:00.000), I want to subtract a year from it (0001-00-00T00:00:00.000).
What kind of coding language does the Expression field use? JavaScript? C#?
In the base events I see methods can be used in this Expression field for strings, i.e:
“expression”: “‘{sysPages.epBinding}’.startsWith(‘LandingPage’)”
“expression”: “‘{Part.PartDescription}’.substring(0, 8)”
“expression”: “‘%value%’ == ‘CHARACTER’ && ‘{PartPlant.SNPrefix}’.length > 10”
I suppose it would also make sense to me if you can use methods for datetime variables:
or something like that