and more in a single search tool across platforms. Read the announcement here. |
12/13/2022 03:14 AM
Hi experts ,
I have the below requirement
If customproperty65 =DM and customproperty64 = today's date
then set extensionattribute 7 = secondary
i tried the following logic but no luck , please suggest
{
"objects": [{
"objectClasses": [
"user",
"top"
],
"distinguishedName": "${account.accountID?.replace('\\', '\\\\')?.replace('/', '\\/')}",
"attributes": {
${user.customproperty65 == 'DM' && user.customproperty64 == Calendar.getInstance().getTime().format('yyyy-MM-dd') ? '' : '"extensionAttribute7": "' + 'Secondary' + '",'}
"userAccountControl": "${account.customproperty24.toInteger()}",
${user.middlename == null ? '' : '"initials": "' + user.middlename + '",'}
${user.street == null && user.customproperty19 == null ? '' : '"streetAddress": "' + (user.street==null?'':user.street) + (user.customproperty19==null?'':', ' + user.customproperty19) + '"'}
}
}]
}
Also , is there a compiler available to check it beforehand or it can only be done on hit try basis
12/13/2022 03:15 AM
12/13/2022 04:05 AM
What is date format of cp64
12/13/2022 04:42 AM
same i.e. YYYY-MM-DD
12/13/2022 04:54 AM
The Task gets completed successfully but the extensionattribute7 value is not updated . Looks like a logical / syntax error
Please suggest