https://github.com/jsmithdev/meta-mouse
Salesforce tool
https://github.com/jsmithdev/meta-mouse
salesforce
Last synced: about 2 months ago
JSON representation
Salesforce tool
- Host: GitHub
- URL: https://github.com/jsmithdev/meta-mouse
- Owner: jsmithdev
- License: mit
- Created: 2019-04-02T18:37:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-10T23:31:37.000Z (about 3 years ago)
- Last Synced: 2025-10-10T21:53:41.390Z (8 months ago)
- Topics: salesforce
- Language: JavaScript
- Homepage:
- Size: 226 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Meta Mouse
🐭 likes 🧀 and Salesforce tasks
## Requirements
Have [Node.js](https://nodejs.org/en/download/) installed
All but Hubspot tasks use [sfdx](https://developer.salesforce.com/tools/sfdxcli)
## Install
```bash
npm i -g meta-mouse
```
> You can upgrade metamouse using the same command used to install above
## Usage
```bash
metamouse
```

> Use arrow keys or type to navigate
## Tasks
When ran, there are these options to choose:
### Select Username 🧀
Set & cache the current username to use
### Add Username 🧀
Connect orgs to sfdx and cache for quicker access
### See Cached Username 🧀
Display the cached username used for any sfdx tasks
### Refresh Usernames 🧀
Pulls list of usernames from sfdx and caches list for quicker access and switching
### Open in Browser 🧀
Open org in browser (using cached username)
### Validation Rule Count 🧀
Count validation rules in org (using cached username)
When ran, choose Standard, Custom or All Objects
Once retrieved and parsed, displays the number of validation rules
### Generate Object Sheet 🧀
Create sheet of object metadata in selected user's org to your home directory
### Quit 🧀
Exit metamouse
### Hubspot to Salesforce 🧀
To help migrate from Hubspot to Salesforce
When ran, there are options to choose:
#### Set Auth 🧀
Set the auth used for Hubspot to Salesforce processes
> if you dont enter a value, it will keep the cached value so you can just replace
> an api key for instance
#### View Auth 🧀
Displays the auth used for Hubspot to Salesforce processes
#### Clear Auth 🧀
This clears the auth cache used for Hubspot to Salesforce processes
#### Copy files to Salesforce 🧀
This will ask for a full file path to a csv to process
The csv file format is:
```text
62430000001,0031U00001bkw9kQAA
62430000000,0031U00001bkw9kQAA
```
> Hubspot file id then the Salesforce id; No header, comma delimiter, etc
Uses the Hubspot file id to get the Hubspot file URL, download from
Hubspot, upload / insert ContentVersion to Salesforce and gets the
ContentDocumentId
Uses the Salesforce Id and ContentDocumentId to insert a
ContentDocumentLink, linking ContentVersion/Document and the record
#### Download files locally (from Hubspot) 🧀
Uses the Hubspot file id to get the Hubspot file URL, download from
Hubspot to the location of the provided csv.
This will ask for a full file path to a csv to process
The csv file format is:
```text
62430000001,0031U00001bkw9kQAA
62430000000,0031U00001bkw9kQAA
```
> Hubspot file id must be in first row; No header, comma delimiter, etc;
> Ignores anything passed first comma
### Dev
Install deps
```bash
npm i
```
Start
```bash
npm start
```