
Hello everyone!
I'm currently looking for a way to filter all messages inside a channel, by looking for an information sitting inside "attachments->content" (see picture below)
When I set the filter array, it just looks for content in "body->content" buw this doenst work because there are no relevant informations.
This is the filter array i use at the moment:
From: List of Messages
Filter: "body contains id"
How can I get this flow to work? Thanks guys
Hi , @LennartKrebs
According to your screenshot , you want to use the "Attachments -> content" contains "ID".
If this , you can try to use this expression in the left of the judgement pane.
(1)If your Attachments has just one item in the array:
You can use this expression:
item()?['attachments']?[0]?['content']
(2)If you have more then one item in the array, you can use this expression:
join( xpath( xml(json(concat('{"root":{"item":',item()?['attachments'],'}}'))) , '/root/item/content/text()') , ';')
If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance!
Best Regards,
Yueyun Zhang