First Up - Firstvalid
"name": "Manager FreshService ID",
"type": "firstValid",
"attributes": {
"ignoreErrors": "true",
"values": [
{
"attributes": {
"value": "$identity.getManager().getLinksByAppIdOrName(\"appID\", \"appName []\").get(0).getNativeIdentity()"
},
"type": "static"
},
{
"attributes": {
"value": ""
},
"type": "static"
}
]
},
"internal": false
}
expected result: the (appname.id) of their Manager, or “”
it works in IDN, but fails with
Cannot read properties of undefined (reading 'type')
In the tool
Next up:
"name": "Post Email Active Date - live",
"type": "dateMath",
"attributes": {
"expression": "+3M/h",
"roundUp": true,
"input": {
"attributes": {
"input": {
"attributes": {
"sourceName": "BambooHR",
"attributeName": "termination date"
},
"type": "accountAttribute"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
},
"internal": false
}
errors with
workbench.desktop.main.js:2693 RangeError: Invalid time value
at Date.toISOString (<anonymous>)
at Dt.dateFormat (vscode-file://vscode-app/Users/sholinaty/.vscode/extensions/yannick-beot-sp.vscode-sailpoint-identitynow-0.0.12/out/extension.js:549:22012)
at Dt.evaluateTransformOfType (vscode-file://vscode-app/Users/sholinaty/.vscode/extensions/yannick-beot-sp.vscode-sailpoint-identitynow-0.0.12/out/extension.js:549:12722)
at Dt.evaluateChildTransform (vscode-file://vscode-app/Users/sholinaty/.vscode/extensions/yannick-beot-sp.vscode-sailpoint-identitynow-0.0.12/out/extension.js:549:14869)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Dt.evaluate (vscode-file://vscode-app/Users/sholinaty/.vscode/extensions/yannick-beot-sp.vscode-sailpoint-identitynow-0.0.12/out/extension.js:549:10190)
Expected:
take a yyyy-MM-dd formatted date, off of a source (BambooHR), convert it to ISO8601, add 3 months to it
(yes, its a bit ridiculous but it fits a very specific need of ours
it actually looks like most of my date compares that have a input/output format are the ones erroring out in evaluation.