Cause we could not update to a newer versions since this is the last version with NTLM ...
But since we will soon move to the SAML SSO i tried the newest Version of SD to minimize compatibility issues.
After i did that i realized all my Custom Scripts are broke and i am not able to fix them:
var fn_requesterValue =$CS.getValue("REQUESTER");
var neuerbetreff = "Neuen Arbeitsplatz für " + fn_requesterValue + " aufbauen ";
$CS.setValue("SUBJECT", neuerbetreff);
Error here: ReferenceError: $CS is not defined at eval
I searched a little bit and found some difference how it is used now so i tried this:
var fn_requesterValue = await CS.getValue("REQUESTER");
var neuerbetreff = "Neuen Arbeitsplatz für " + fn_requesterValue.name + " aufbauen ";
$CS.setValue("SUBJECT", neuerbetreff);
CS.end();
TypeError: Cannot read properties of null (reading 'name') at eval
If i use a custom field the Script woks but i allways get a NULL or an undifined in the variable.
Anyone any ideas? What i am missing?