Set the value of a customField with multi values

I am getting 400 errors when attempting to set the value of a custom field with multiple values. I can set the values on the UI and see them when I send a GET request, but my PUT requests either fail or don't have the correct results. I've tried:

400 Errors:

[URL]?customFields=[{"id":"IEAE3OG2JUACPNG2", "value": [\"Prod 1\", \"Prod 2\"]}]

[URL]?customFields=[{"id":"IEAE3OG2JUACPNG2", "values": [\"Prod 1\", \"Prod 2\"]}]

[URL]?customFields=[{"id":"IEAE3OG2JUACPNG2", "value": [\"Prod 1\"][\"Prod 2\"]}]

Invalid Parameter. Parameter 'customFields' value is invalid:

[URL]?customFields=[{"id":"IEAE3OG2JUACPNG2", "value": ["Prod 1", "Prod 2"]}]

[URL]?customFields=[{"id":"IEAE3OG2JUACPNG2", "value": ["Prod 1"]["Prod 2"]}]

[URL]?customFields=[{"id":"IEAE3OG2JUACPNG2", "value": ['Prod 1', 'Prod 2']}]

Succeed, but they don't set anything:

[URL]?customFields=[{"id":"IEAE3OG2JUACPNG2", "values": ["Prod 1", "Prod 2"]}]

Succeeds, but it adds everything as a string as opposed to individual items:

[URL]?customFields=[{"id":"IEAE3OG2JUACPNG2", "value": ["Prod 1, Prod 2"]}]

 

Any ideas?

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
1 comment

Hi MediaPulse Integration, I've asked our Support team to help you with your question, and I can see they've reached out to you about this 👍

Please let me know if there's anything else I can help you with! 

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: Set the value of a customField with multi values
[this list is visible for admins and agents only]

Top
Didn’t find what you were looking for? Write new post