This script migrates data from Salesforce to Notion. The script gets data from two properties in Salesforce, Contacts and Accounts.
- Node.js
- Salesforce API credentials
- Notion API credentials
To use the script:
- Clone the repository
- Run
npm install
to install the dependencies - Ensure to check the .envsample so as to create you own .env file with all the required configurations
- Run
npm start
to start the service. It is configured to run with 'forever' module - To migrate Accounts info, use the route "{your_base_url}:5000/import/accounts"
- To migrate Contacts info, use the route "{your_base_url}:5000/import/contacts"
- To stop the script and any subprocesses, use the command
npm stop
These routes may be used in both the browser or using an API platform like POSTMAN, ensure to use get request.
- Clone the repository
- Run
npm install -g
to install dependencies globally - Run
accounts
to do perform the accounts migrations - run
contacts
to migrate the contacts
The script is configured to save logs in api.log. The script runs automatically even with bugs, and in case it is stopped, restarts from the stage it stopped.
To check if there are any processes running, use the command forever list