Coma separated values in workflow

I’ve external trigger workflow defined in ISC and input to workflow is as below

{
“input”: {
“accountName”: “account1”,
“appName”: “App1”,
“listEntitlements”: [
“Ent1,Ent2”
]
}
}

  1. if accountName value is blank (“accountName”: “”) how do i verify in workflow.

  2. how do i check ent2 is exists in ISC or not?

Appreciate your help.

Hi @KrishnaReddy

  1. You can use accountName.length() then use a compare numbers operator to check if it’s 0 or not.
  2. You can use a loop with listEntitlements as the input and do a HTTP Request to the list entitlements endpoint with the name of ent2 as a filter (?filters=name eq ent2). If the response from the API is greater than 1 ($.hTTPRequest.body.count() > 0) then you can confirm that the entitlement exists in ISC.

Let me know if you have any questions/concerns with the above!

Thanks @trettkowski . In addition to accountName, i’ve other fields they can be empty.

Now instead of creating multiple compare numbers steps to check each field emptiness in workflow, can i use single step with or operator of list in backend, just like compare strings field.

Thanks in advance.

Unfortunately, I’m not aware of any easy way to check for multiple conditions inside one compare numbers step. This is an issue I previously had and suggested help as well. My solution on there won’t work for you since you aren’t dealing with identity attributes, but at this time without using external systems to do the logic, it will just need to be one compare statement per check.

Thanks again for reply @trettkowski