enosh123
(Enosh Watson)
July 28, 2024, 12:19pm
1
Need help on workflow, I need to add compare string or date operator to check if azureLastLoginTime is ‘0’ or not
azureLastLoginTime is identity attribute
“Compare Strings 1”: {
“choiceList”: [
{
“comparator”: “StringEquals”,
“nextStep”: “”,
“variableA.$”: “$.trigger.identity.azureAdLastLoginDatetype”,
“variableB”: “0”
}
]
Not working. Even ‘on’ operator in compare date not working
Hi @enosh123 ,
What is type of value that you have on identity attribute, is it number or date? Can you add a transform on the identity attribute to set either true/yes or false/no based on your logic for ‘azureLastLoginTime’ value (0 or any other value) and the use compare string operator in workflow?
1 Like
enosh123
(Enosh Watson)
July 28, 2024, 2:42pm
5
Value is date
"operator": "gt",
"positiveCondition": {
"attributes": {
"input": {
"attributes": {
"sourceName": "Azure Active Directory",
"attributeName": "lastSignInDateTime"
},
"type": "accountAttribute"
},
"inputFormat": "yyyy-MM-dd'T'HH:mm:ss",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"negativeCondition": "0"
},
"type": "dateCompare"
},
Hi!
Can you try maybe this solution:
{
"operator": "gt",
"positiveCondition": {
"attributes": {
"input": {
"attributes": {
"sourceName": "Azure Active Directory",
"attributeName": "lastSignInDateTime"
},
"type": "accountAttribute"
},
"inputFormat": "yyyy-MM-dd'T'HH:mm:ss",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"negativeCondition": "1970-01-01T00:00:00",
"type": "dateCompare"
}
1 Like
system
(system)
Closed
September 27, 2024, 12:46pm
7
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.