Hi Guys,
I’m trying to update fields in salesforce using the pub.client:http (patch method - method that was suggested to be used according to salesforce documentation) but I’m unable to perform successful http response.
These are the parameters I’ve configure when invoking the service pub.client:http
- url - https://{client}.salesforce.com/services/data/v54.0/sobjects/object__c/{external id}
- method - patch
- data/args/body(json string) - {“name”: “test”}
- header
Authorization - Bearer {access token}
Content-Type - application/json
These configuration returns below error
[{“message”:“MediaType of ‘application/x-www-form-urlencoded’ is not supported by this resource”,“errorCode”:“UNSUPPORTED_MEDIA_TYPE”}]
Note: I’ve tried the same configuration in postman using a patch method and a json body and it worked fine.
Any thoughts on how to fix this issue using http? if not, are there any other option that will work for on updating fields in salesforce?
Regards,
BG
#Integration-Server-and-ESB#webMethods