Last active
March 19, 2017 14:35
-
-
Save JunNakamura/f8aa3d082493e863e03a0f677e2cdd8b to your computer and use it in GitHub Desktop.
Force.com CLIでカスタムフィールドを作成 ref: http://qiita.com/n_slender/items/93ab65e82652d5661a01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| force field create Account sample_text1:string label:サンプルテキスト1 length:10 | |
| force field create Account sample_text2:string label:サンプルテキスト2 length:20 | |
| force field create Account sample_text3:string label:サンプルテキスト3 length:30 required true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| force field create [object_name] [my_number_field]:[type] label:[my_label] | |
| # テキスト型 | |
| force field create Account sample_text:string label:サンプルテキスト length:12 | |
| # 数値型 | |
| force field create Account sample_number:number label:サンプルナンバー precision:2 | |
| force field create Account sample_double:double label:サンプルダブル precision:2 scale:1 | |
| # 日付型 | |
| force field create Account sample_date:datetime label:サンプル日付 | |
| # 必須項目 | |
| force field create Account sample_required:string required:true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FIELD DEFAULTS | |
| ========================================================================= | |
| text/string (length = 255) | |
| textarea (length = 255) | |
| longtextarea (length = 32768, visibleLines = 5) | |
| richtextarea (length = 32768, visibleLines = 5) | |
| checkbox/bool/boolean (defaultValue = false) | |
| datetime () | |
| email () | |
| url () | |
| float/double/currency (precision = 16, scale = 2) | |
| number/int (precision = 18, scale = 0) | |
| autonumber (displayFormat = "AN {00000}", startingNumber = 0) | |
| geolocation (displayLocationInDecimal = true, scale = 5) | |
| lookup (will be prompted for Object and label) | |
| masterdetail (will be prompted for Object and label) | |
| picklist () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| force login | |
| ← ブラウザが起動するので作成したいインスタンスのアカウントでログイン | |
| ./create_fields.sh | |
| force logout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment