Hi Folks,
New to ISC, So just trying to create a disable policy for a source, in that there is a attribute called user valid to in which we need to enter the value of the one day before date of when the account is disabled i.e. yesterday’s date in yyyy-mm-dd format.
So tried to write the below transform:
“name”: “User Valid To”,
"transform": {
"type": "static",
"attributes": {
"date": {
"type": "dateFormat",
"attributes": {
"inputFormat": "yyyy-MM-dd'T'HH:mm",
"outputFormat": "yyyy-MM-dd",
"input": {
"attributes": {
"expression": "now-1d",
"roundUp": true
},
"type": "dateMath"
}
}
},
"value":"$date"
}
},
Can anybody give suggestions if it is correct or need any updation.