RE: HTTPS Patch Method

Hi,

 

We are building a hubspot intergration and their API require PATCH methods to be used for updating.

 

Netsuite does not support the PATCH method. Does anybody know of a work-around? Such as using CURL etc?

 

https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4567626997.html

col468 Rookie Asked on November 21, 2022 in SuiteScript.

I appended the following string in and it worked!

 var response = https.post({
           url: ‘https://abc4-dev-ed.develop.my.salesforce.com/services/data/v61.0/sobjects/Customer/’+salesforceId + ‘?_HttpMethod=PATCH’,
                    headers: {
                Authorization: ‘Bearer ‘ + accessToken,
                ‘Content-Type’: ‘application/json’,
                    },
on July 12, 2024.
Add Comment
2 Answers

Hi,

I’ve recently been working with HubSpot too.

Firstly, with other systems, I’ve had luck with this:


headers: { 'X-HTTP-Method-Override': 'PATCH' }

That’s worth knowing about but unfortunately it doesn’t work with HubSpot.

Instead, I ended up using a batch update:

https://developers.hubspot.com/docs/api/crm/companies

POST/crm/v3/objects/companies/batch/update

I hope that helps!

Thanks,

Chris

Advanced Answered on November 22, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.