REST API createRecord picklist value

Posted by marian.edu on 26-Aug-2016 04:37

Probably a dumb question but so far wasn't able to set a value for a picklist field through the createRecord REST API, tried using a number (value index) or the value itself... with useIds set to true or false, nothing seems to work, anyone has an idea how this should be done?

There is no error, the record is created but the value is not set on that picklist field (tried several fields, none works)... oddly enough the 'id' we get back in 'data' response doesn't match the unique id of the created record but we can see the record is created.

Thanks

Posted by satyanarayana sunku on 26-Aug-2016 04:49

Hi marian,

You need to pass picklist value integration code as parameter value. It will set it successfully.

If you want to set multiple values use pipe(|) symbol.

Thanks

Satya

All Replies

Posted by satyanarayana sunku on 26-Aug-2016 04:49

Hi marian,

You need to pass picklist value integration code as parameter value. It will set it successfully.

If you want to set multiple values use pipe(|) symbol.

Thanks

Satya

Posted by marian.edu on 26-Aug-2016 10:19

Hi Satya,

thanks for that, we do not have any integration code set for values and the field is 'long'... however it turns out I was sending the wrong field name (type instead of Type), now it does work with the values or the value index.

Thank you.

Marian

This thread is closed