1.0.1 • Published 2 years ago
node-red-contrib-moveemail v1.0.1
This script defines a Node-RED node that takes in a msg object as input. The msg object is expected to have messageid, sourcefolderid, destinationfolderid, and token properties which are used to interact with the Office 365 API1.
The Axios node is used to send a POST request to the /me/mailFolders/{source-folder-id}/messages/{message-id}/move endpoint of the Microsoft Graph API, passing in the destination folder ID in the request body1.
Please replace 'axios' in RED.nodes.getNode('axios') with the ID of your Axios node.
Remember, the msg.payload will contain the response from the HTTP request.
I hope this helps! Let me know if you have any other questions. 😊.
1.0.1
2 years ago