0

I'm using the Salesforce module for Drupal with mapping in place integrated with Commerce module and I've the following SalesforceException when purchasing the order:

SalesforceException: HTTP Method 'PATCH' not allowed. Allowed are HEAD,GET,POST

Why this is happening and how to debug or deal with such problem?

  • Re-posted from here, as it has been closed there as off-topic. – kenorb Nov 30 '17 at 11:16
0

The format of the HTTP SFDC API callback for inserting/upserting records is:

/services/data/v20.0/sobjects/ObjectName/customExtIdField__c/Id

The ObjectName is the Name of an Salesforce table i.e. 'Contact' or 'Account'. And Id is the Id of a specific record you want to update in the table.

The possible cause of the error for that would be that you're calling SFDC API with the invalid data.

Please check if your REST URL is correct, probably your objectId is not passed through. E.g. If you have dependencies between the other objects, check if these were created in the first place, before creating your main object.

Related:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.