Check if field is nonexistent

Hello,

I have a workflow that is using a webhook to get events from another tool and parse the information. One of the steps in the workflow is to check if a certain field exists, such as “if evidence exists” → parse the information.
Any idea how can I do that? I have an IF that checks that (Condition: string) but in the operation I cannot find “exists/does not exist”

Hi @GabCo :wave:

I might be misunderstanding what you’re looking for, but would the Is Empty or Is Not Empty option work for you here? :thinking:

If this wouldn’t work, could you provide some sample JSON data that we can work with to help you out further? :slight_smile:

1 Like

Hello @EmeraldHerald!

Unfortunately the recommended field with Is Empty or Is Not Empty would not work, this assumes that the field exists and it checks for its contents.
What I am looking for is a way to check if a parameter exists (maybe I was not clear in my previous post).
In my workflow I am getting logs from a different tool and I am parsing the info obtained. For instance, I want to see if ‘evidence’ exists, as not all logs have this parameter.

Hence I would want first to check if “evidence” section exists. If it does, I will forward the parsed to another tool.
If “evidence” section does not exist (the logs don’t have this part), logs will not be forwarded to the tool.

P.S. If Evidence is empty does not help, it is still there, so I will need to find an alternative way to check and pass further the log if the whole parameter is not part of the log.

Hope this explains a bit better what I am trying to do :slight_smile:

Hi @GabCo - It does :slight_smile: Could you provide some sample data in JSON format for this and I can try to help you out with a different solution?