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

Creating a MultiPicklist #298

Open
juanfilgueira opened this issue Nov 18, 2023 · 2 comments
Open

Creating a MultiPicklist #298

juanfilgueira opened this issue Nov 18, 2023 · 2 comments

Comments

@juanfilgueira
Copy link

Hi Andrew, how are you?

I'm really new working with Metadata Api (it's awsome!) but i'm having an issue when trying to create a MultiPicklist or MultiselectPicklist field. I'm getting:

'MultiPicklist' is not a valid value for the enum 'FieldType.

Is there a way to do it and i'm missing something? Or is that something we can't do?

Thanks for all your work!

@cropredyHelix
Copy link

Values for the customField.type_x assignment are of type FieldType as per the Metadata API doc

  • You have MultiPicklist
  • Doc states MultiselectPicklist

values are case sensitive. Be sure you have also specified a valueset.

Note - I've found that the easiest way to debug these issues is to create in an org using the UX the metadata type with desired nature and then use the library to retrieve that metadata type and explore the apex structure using your IDE.

@brianbier
Copy link

Did anyone figure this one out yet? For some strange reason it still not being updated.

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