Is there was a way to add an array to verify data type?

For example if i want to verify that every identity is from specific location example

[Boston, New York City, Chicago] then a specific service now ticket would be created. I have the identity created filter already filtered for specific employee numbers, but we also need specific location? Would I just need to use a bunch of compare strings or is there a simpler way to achieve my goal?

@Dw2456 you can use this filter in you “Identity Created” trigger :

$[?(@.attributes.location ['Boston', 'New York City', 'Chicago'])]

This will filter on identity in a trigger level and you don’t need to use “Verify Data type” operator.
Let me know if this work for you.

From Your scenario as you mentioned, you are using Identity Created trigger. The json of that particular trigger looks like this. [Note: The below JSON is just a sample from documentation].

{
    "identity":{
        "id":"ee769173319b41d19ccec6cea52f237b",
        "name":"john.doe",
        "type":"IDENTITY"
    },
    "attributes":{
        "firstname":"John",
        "lastname":"Doe",
        "email":"[email protected]",
        "department":"Sales",
        "displayName":"John Doe",
        "created":"2020-04-27T16:48:33.597Z",
        "employeeNumber":"E009",
        "uid":"E009",
        "inactive":"true",
        "phone":null,
        "identificationNumber":"E009",
        "isManager":false,
        "manager":{
            "id":"ee769173319b41d19ccec6c235423237b",
            "name":"william.wilson",
            "type":"IDENTITY"
        },
        "customAttribute1":"customValue",
        "customAttribute2":"customValue2"
    }
}

So, I guess you can include your both conditions in your first filter like below.

$.attributes[?(Your First Condition && @.department in ['Boston', 'New York City', 'Chicago'] )]

Here, the attribute I have used is department to show how it can be done but location attribute depends upon your identity and JSON thrown by the trigger condition. Please check if the above condition works in your scenario.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.