You need to sign in to do that
Don't have an account?
Miranda L 2
How to pass List<String> in post method using Apex
third party need to pass a list of values in the request body of POST method but I get 400: Bad Request error.
Third party JSON using like below
Third party JSON using like below
{"entityName":"Invoice","records":[{ "company_id":"YKY7EP1K1", //below product items will have multiple values which would be in string. "product_items":["apple","orange"], "workflow_state":null }] }
so how could I develope product_items to assign this array string values to my Invoice object field. Webservice already got developed and its running fine but this new field got created recently and third party want to send in array format so how could I implement it.
Thanks in advance
Thanks in advance
You'd just need to update whatever custom JSON seraliser you're using to cast "product_items" to the correct List<String> type.
Multi-select just uses a semi-colon as a seperate for each value.
Please suggest
please suggest