parse-salesforce-object
Parse Salesforce Custom Object's metadata and convert to Markdown/CSV/SOQL format
Last updated a year ago by zaki-yama .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parse-salesforce-object -g
SYNC missed versions from official npm registry.

parse-salesforce-object

Version CircleCI Appveyor CI Codecov Downloads/week License NPM

Parse Salesforce object metadata (e.g. Foo__c.object) and display fields as Markdown/CSV/SOQL.

Installation

$ npm install -g parse-salesforce-object

Usage

# Display as Markdown table
$ parse-salesforce-object path/to/CustomObject__c.object
| label       | fullName      | type     | required |
| ----------- | ------------- | -------- | -------- |
| Amount      | Amount__c     | Number   | false    |
| Client      | Client__c     | Text     | false    |
| Date        | Date__c       | DateTime | false    |
| Reimbursed? | Reimbursed__c | Checkbox | null     |

# Use `--format=csv` (or `-f csv`) to display as CSV
$ parse-salesforce-object --format=csv path/to/CustomObject__c.object
"label","fullName","type","required"
"Amount","Amount__c","Number","false"
"Client","Client__c","Text","false"
"Date","Date__c","DateTime","false"
"Reimbursed?","Reimbursed__c","Checkbox",

# It also supports `--format=soql` (or `-f soql`) to display as SOQL query format.
$ parse-salesforce-object --format=soql path/to/CustomObject__c.object
SELECT Id,
Amount__c,
Client__c,
Date__c,
Reimbursed__c
FROM CustomObject__c

# SOQL format with namespace prefix
$ parse-salesforce-object --format=soql --namespace=foo path/to/CustomObject__c.object
SELECT Id,
foo__Amount__c,
foo__Client__c,
foo__Date__c,
foo__Reimbursed__c
FROM foo__CustomObject__c

Current Tags

  • 0.0.6                                ...           latest (a year ago)

5 Versions

  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 0
Last Month 1
Dependencies (7)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |