I think it should be something like:
static def GetAttributeValue(Incident):
Value = 'False'
Value = 'True'
This might be helpful:
Thank you Jamie for your answer,
I forget to tell that i am using LDSD 7.4 and the link DOC-28496 provided is for 7.6 i suppose
In calculation ( in Only Createdby or RaiseUser), syntax was validated and process was activated (no error ..it seems to be ok)
When i create a new ticket and when i click to resolve action, I have this error
There has been an unexpected error. Click Continue to return to the previous page.
There is an error in XML document (1, 1).
(You can see attached file please)
Ticket is then in Resolved status and could not open it agin ( same error message)
Is the code not compatible with the 7.4 version ? or there is something wrong ?
Thanks very much
This is 7.6 functionality so the code is not compatible. I dont think there is a way in 7.4 that i have seen but might be wrong! Just wanted to say incase it takes Jamie a while to get back to you and you are sat in the meantime banging your head on the desk trying to work out why it wont work.
XML error means that You trying to check attribute without value, so "$currentuser$' is not good idea. If You remove bad condition from process XML error will disappear. Problem is I started with 7.5, now using 7.6.2, and no idea how to check current user in 7.4 ...
Xml errors is due to the
Incident.GetCurrentUserName()function which is not supported on 7.4
Landesk support confirm that it is not possible to get the current user from Calculation with a LDSD 7.4 Version