JAVA SDK - Update a Multi Picklist
Hello,
I am having trouble updating the value of a multi-picklist in my sheet. I am using the Java SDK smartsheet-sdk-java 3.1.1, on Java 17. I am setting the column value with the following code:
Cell c = new Cell(column.getId());
c.setObjectValue(new MultiPicklistObjectValue(List.of("All", "Some", "None")));
My column I am updating looks like:
{
"title": "Programming",
"type": "MULTI_PICKLIST",
"options": [
"All",
"Some",
"None"]
}
All my other columns update fine, but I can't figure out how to use this SDK to update a Multi Picklist. Any help is much appreciated!
Answers
-
Here are some conversations I found on StackOverflow that may help:
I don't personally work with the JAVA SDK so I'm unsure what the exact syntax would be, but if you're looking to update a cell with multiple values, I believe you'd need to identify the "objectValue" to have the "objectType" as "MULTI_PICKLIST" and then list the "values" afterwards.
Here's the Java SDK on GitHub and the API Documentation around updating rows.
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives