and more in a single search tool across platforms. Read the announcement here. |
03/06/2023 05:18 AM
Hello,
We have a usecase where some properties in ad should only get updated when a certain account cp is null or not equal to 'noupdate'. Hence, I've raised other tickets in forum and saviynt suggested certain syntaxes, which i'v tried, for example, below:
{
"givenname": "${if(user.firstname !=null) {user?.firstname} else {''}}",
"l": "${if(account.customproperty10 == null || account.customproperty10.equalsIgnoreCase('noupdate')) ${user?.city} else account.customproperty10}",
}
However, getting the error:
No such property: customproperty10 for class: java.lang.String.
What does this mean, can someone suggest where the error is? Because I don't think it's the syntax, it's occurred when i've tried different approaches. Another thing, it only started coming up when i started useing account cp10 instead of user cp10, so could it be related to that?
Thanks in advance!
03/06/2023 05:23 AM
account?.customproperty10
03/06/2023 06:30 AM
Hey,
Thanks for the response. I'm guessing you meant something like this:
"${if(account?.customproperty10 == null || account?.customproperty10.equalsIgnoreCase('noupdate')) ${user?.city} else account.customproperty10}"
still gave me the exact same error. should i also put account?.customproperty10 in the else condition?
Thanks
03/06/2023 03:54 PM
Refer to my response on your original thread: https://forums.saviynt.com/t5/identity-governance/how-to-write-null-condition-in-ad-updateaccount-js...