How can i read the field “body” from “data” array?
With the following formula i can retrieve “body” from “notifcation” array.
I need to access the whole array.
Thanks a lot for helping me.
LOOKUP(outputs["NOTsent"].event, "body")
curl --location --request POST 'https://fcm.googleapis.com/fcm/send' \
--header 'Content-Type: application/json' \
--header 'Authorization: key=<MyFirebaseServerKey>' \
--data-raw '{
"to": "<Device Token user sent you from his app>",
"notification": {
"sound": "default",
"body": "test message",
"content_available": true,
"title": "Hello from the backend"
},
"data": {
"sound": "default",
"body": "test message",
"content_available": true,
"title": "Hi!!"
}
}'
Example from Docs.