项目作者: tzmfreedom

项目描述 :
Embulk output plugin to load into Salesforce.com.
高级语言: Java
项目地址: git://github.com/tzmfreedom/embulk-output-salesforce.git
创建时间: 2015-06-21T14:49:13Z
项目社区:https://github.com/tzmfreedom/embulk-output-salesforce

开源协议:MIT License

下载


Salesforce output plugin for Embulk

Embulk output plugin to load into Salesforce.com.

Overview

  • Plugin type: output
  • Load all or nothing: no
  • Resume supported: no
  • Cleanup supported: no

Configuration

  • username: salesforce username (string, required)
  • password: salesforce password (string, required)
  • batch_size: batch size (string, default: 200)
  • login_endpoint: login endpoint (string, default: https://login.salesforce.com)
  • sobject: salesforce object API name (string, required)
  • upsert_key: upsert API field name (string, default: null)
  • action: output action that is “insert”, “update”, “upsert” or “delete” (string, default: insert)
  • result_dir: directory for resulting csv(success and error file). If the directory is not exist, the plugin show error. If not specified, resulting csv is not created. (string, default: null)
  • version: API version (string, default: “34.0”)

Example

The column names must be salesforce API field name.

  1. in:
  2. type: file
  3. path_prefix: /path/to/salesforce_
  4. parser:
  5. charset: UTF-8
  6. newline: CRLF
  7. type: csv
  8. delimiter: ','
  9. quote: '"'
  10. escape: ''
  11. skip_header_lines: 1
  12. comment_line_marker: null
  13. allow_extra_columns: true
  14. allow_optional_columns: false
  15. columns:
  16. - {name: Name, type: string}
  17. - {name: Date__c, type: timestamp, format: '%Y-%m-%d'}
  18. - {name: DateTime__c, type: timestamp, format: '%Y-%m-%d %H:%M:%S%Z'}
  19. - {name: Number__c, type: double}
  20. - {name: Reference__c, type: string}
  21. out:
  22. type: salesforce
  23. username: hoge@example.com
  24. password: fuga
  25. sobject: Account
  26. action: insert

Build

  1. $ ./gradlew gem