Almost.
First we need to know that "A" in that case would be local var, that means that it will be empty at the beginning every time the flow runs (simply said), that means "A = A + notification_text" will always be same as "A = notification_text"
So what you need is something like this
Code: Select all
Trigger: notification in statusbar
com.whatsapp
like you already have correctly. This trigger gives you the variables described by the "?" (title, title_big, notification_text, notification_text_big, and so on)
Code: Select all
Action: Script
A = notification_text
And another action like this one:
Code: Select all
Action: write to file (or something like that, I have the german version)
filename: the filename (including the path) you want to write to
text: {A}
checkbox for appending have to be checked
the "{" and "}" you need to declare that text is kind of sourcecode in that case just the var "A".