I am afraid you really need to do some learning.
If you read the link i posted...
you would see your error (clue - missing parenthesis)
Additionally, where do you think
object.data1 comes from? Read this to learn how to use the debug panel to find the right path to any data item: Working with messages : Node-RED
I also recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.