I have the following “match” expression in my trigger:
{
"fullDocument":
{
"event":"A specific Desired Event"
}
}
Problem is, with this expression, the trigger never fires. If I remove the expression, it fires for every update, and insert. I’m assuming the format of this expression is incorrect, but I’m having a heck of a time finding what it should be. Can someone give me an assist?
What I am ultimately hoping to accomplish is to only trigger when the “event” field in the “Full Document” matches a “specific event” text string.
Could you try and test the following within the match expression code box to see if it works for your use case? :
{
"fullDocument.event" : "A specific Desired Event"
}
There is a similar example of this in step 10 of the Create a Trigger page.
On my test environment, I had got the test trigger to run with a match expression noted below (for when the "a" field is updated to an int value of 2) :
{
"fullDocument.a" : 2
}
Note: Once I had saved the above format match expression, reloading the same trigger then resulted with the following match expression: