Forum Discussion
It seems like a syntax issue. In my experience it's easier to keep everything in the braces so the pipeline is only evaluating whats in the braces.
{{a.body_params.header.Action}} is "RecordUpdate"
try
{{a.body_params.header.Action === 'RecordUpdate'}}
------------------------------
Chayce Duncan
------------------------------
- KinsonLam2 years agoQrew Trainee
This method is still not working. it still always gives "false" even the value of a.body_params.header.Action is "InternalNoteChanged". any idea how to make it work?
- DonLarson2 years agoQrew Elite
How about the capitalization in the Jinja expression? Change Action to action.
{{a.body_params.header.action === 'RecordUpdate'}}
------------------------------
Don Larson
------------------------------- ChayceDuncan2 years agoQrew Captain
Can you post a picture of the webhook response that goes along with your screenshot above?
You technically don't need the if condition at all - the response of a.body_params.header.Action == 'something' will return true / false as the default behavior or a comparator condition such as that.
From your screenshot though, something seems off with how you're doing the actual pipeline expression and then evaluate condition. So in this case it looks like your expression of == "InternalNoteChanged" - return true, is returning properly. But your actual pipeline step says 'Evalute to FALSE' so if in fact the type is InternalNoteChanged - you're still going to skip over because the Pipeline is looking for False
------------------------------
Chayce Duncan
------------------------------