Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create field picklist with specified api-name? #325

Open
vitaly-zdanevich opened this issue Oct 22, 2016 · 2 comments
Open

how to create field picklist with specified api-name? #325

vitaly-zdanevich opened this issue Oct 22, 2016 · 2 comments

Comments

@vitaly-zdanevich
Copy link

I tried
force field create Airplanes__c 'my label of picklist':picklist picklist:'Pass, Fail, Redo' name:'my_name_of_picklist'
but this return
ERROR: validation error: name:my_name_of_picklist is not a valid option for field type picklist

@dwf49
Copy link

dwf49 commented Aug 16, 2017

Presuming this hasn't been resolved and that this is in regards to Salesforce; remove the __c from the name - Salesforce automatically adds that at object/field/etc. creation. The rule is that you can state the LABEL name and the OBJECT name while the API name is created by Salesforce.

If this is not about Salesforce - please disregard!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@vitaly-zdanevich @dwf49 and others