Skip to main content
7 votes
Accepted

Managed package patches - can a public inner class be added?

Yes. We have taken this approach with our managed package when back-porting features to patches that added new top-level classes in our master branch. Obviously there are limits to what can appear in ...
Phil W's user avatar
  • 36.8k
6 votes
Accepted

Salesforce REST upsert for externalId cause DUPLICATE_VALUE error

After a month of discussions with Indian support of all tiers, we've got next: Salesforce can't proceed too fast UPSERT queries. If you send two requests with delay about a second or less you'll get ...
KorbenDallas's user avatar
6 votes
Accepted

How to send a PATCH HTTP Callout from Apex to Salesforce Tooling REST API

Use ?_HttpMethod=PATCH in the request URL. public static HttpResponse makeHttpCallout(String url, String method, String body, Map<String,String> headers){ HttpRequest request = new ...
Robs's user avatar
  • 9,376
6 votes
Accepted

Resubmit for Security Review without Patches

If there are bugs that require urgent fixing against previous versions of the package, before you will get through Security Review, this needs to be resolved by raising a case with Salesforce against ...
Phil W's user avatar
  • 36.8k
5 votes

Can an @AuraEnabled method be added in a managed package patch release?

I dont think you have anything to lose by creating a patch org and trying. Per this doc, you can't do the following things You can’t add package components. You can’t delete existing package ...
Sebastian Kessel's user avatar
4 votes
Accepted

2GP managed package: cannot create a patch release

It turns out the error message is a complete red herring; this is nothing to do with communities and all to do with not having had patch version creation enabled on the package's namespace org. This ...
Phil W's user avatar
  • 36.8k
4 votes

Is it fine to get '204 No Content' in PATCH method

HTTP status code 204 is returned if an existing record is updated. here are the salesforce docs on PATCH JSON example response HTTP status code 204 is returned if an existing record is updated. ...
PartOfTheOhana's user avatar
4 votes
Accepted

Is it fine to get '204 No Content' in PATCH method

204 No Content does not mean an error code. It still reflects a successful operation. This is from the MDN docs: The common use case is to return 204 as a result of a PUT request, updating a ...
Jayant Das's user avatar
  • 30.6k
3 votes

Remote Site Settings are deactivated in Patch Org

This is an expected behavior. I ran into this issue too and checked with SF support team. You have to make sure that every time you create a new patch org you should activate the remote site settings ...
balinder singh's user avatar
3 votes
Accepted

Managed package : can I create a patch for previous version major package

Patch versions are created in a copy of the original packaging org. See e.g. Working with Patch Versions. The changes you can make in a patch are quite limited e.g. fixing some lines of code in an ...
Keith C's user avatar
  • 136k
3 votes
Accepted

PATCH Service with Only Changed Data

JSON.deserialize works great for the majority of situations, but assuming your payload contains only changed values, it might be worth the time to use JSON.deserializeUntyped: Map<String, Object&...
sfdcfox's user avatar
  • 495k
3 votes
Accepted

Managed Package Patch: Is new label creation allowed

The creation of new anythings in a patch is prohibited, including a label. Just because they all happen to reside in the same metadata file, does not mean they are all considered one unit. If that ...
sfdcfox's user avatar
  • 495k
3 votes

Can't Upload Patch - Previously Deprecated Components Recognized as New, Can't Delete Them Either

You simply can't do that on a patch. Patches are designed to fix bugs, and therefore you can only touch code, not metadata. From the documentation (note that the word "added", in most cases, ...
Sebastian Kessel's user avatar
3 votes
Accepted

Patch Org to update managed package

A patch org is a clone of an existing version, though you can then have many versions of the patch. So if the existing version to be patched is say 2.5, the first version created in the patch org ...
Keith C's user avatar
  • 136k
3 votes
Accepted

Is patching a managed package with a runtime dependency on other package impossible?

I went through this same thing when the packages were referenced dynamically in the main package. Unfortunately there is no work around and attempts to get Salesforce to allow it were futile for me ...
Eric's user avatar
  • 54.2k
3 votes

Salesforce REST API not allowing to create records by using a reference field

I have figured out my issue. I was trying to reference the object name in the __r instead of the actual name of the relationship I created within custObj2. When using the name of the relationship and ...
YouthDev's user avatar
3 votes
Accepted

Can I update custom fields in my managed package in a patch version?

The following answers are derived from git history, for our AppExchange listed 1GP managed package, covering various patch changes over many years. Can I change the number of decimal places in a ...
Phil W's user avatar
  • 36.8k
2 votes
Accepted

Is there a Patch release schedule? Can I request my org be upgraded to the latest Patch?

if you find the issue in the known issue list then it gives you some details about what pods it's been deployed to thus far. https://success.salesforce.com/issues_index I remember back in the day SF ...
Dan Wooding's user avatar
  • 3,597
2 votes
Accepted

Track patches deployed in Salesforce

Salesforce mentions the current patch revision on Salesforce Status. Click on your pod and you'll see the revision at the top of the page: STATUS & MAINTENANCE NA6 RELEASE: SPRING '17 PATCH 20.3 ...
sfdcfox's user avatar
  • 495k
2 votes

How can I make a PATCH HTTP Callout from Apex?

The release notes for Winter `21 (v50.0) indicate that PATCH support will be coming to Apex. Update Resources with the PATCH HTTP Method in Apex Callouts To make partial or full updates to a resource ...
Daniel Ballinger's user avatar
2 votes

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

Hey I tried it myself with workbench and it seems to be working for me, I am posting screenshots here: API Version could be the issue in your case, Try changing your Apex class to latest api version.
Mr.Frodo's user avatar
  • 5,802
2 votes

Is it fine to get '204 No Content' in PATCH method

It is fine to get 204 No Content using the PATCH method as long as you are using REST API version 45.0 and earlier: In API version 45.0 and earlier, the HTTP status code is 204 (No Content) and there ...
Oleh Berehovskyi's user avatar
2 votes

Cannot deserialize instance of date JSON_PARSER_ERROR when no date present while patching

Found my answer. I passed the field as a null instead of a 0 length string and that corrected it.
NMALM's user avatar
  • 171
1 vote

Platform events: Correlation Id (without adding new field to event payload)

ReplayId is sent as payload to subscribers. You can write a trigger for the platform event and get the replayId, then do the log insertion. trigger MyPETrigger on MyPE__e (after insert) { for (...
Hengky Djapar's user avatar
1 vote
Accepted

Not able to update account using rest API

You're getting an error because your JSON is invalid. You have to quote string values in JSON. This code should be replaced by a single line: update new Account(Id = '0012x000002XVJo', Rating = '...
David Reed's user avatar
  • 93.2k
1 vote

Receiving an abnormal amount of unexpected errors when calling PATCH request

It seems like once again I have jumped too soon into the forums. I found an article somewhere (can't find it again) that suggested rolling back your API version in the HTTP call. I went from v42 ...
NMALM's user avatar
  • 171
1 vote
Accepted

Impossible to patch Account

PATCH seems no longer supported. A work around is a POST method with a parameter : _HttpMethod=PATCH So It becomes : https://orga--sandbox.my.salesforce.com/services/data/v47.0/sobjects/Account/{...
Benoît S's user avatar
1 vote

PATCH request, always get 404 Not Found response

HttpRequest doesn't support PATCH as the method. From the docs: Possible values for the method type include: DELETE GET HEAD POST PUT TRACE Setting X-HTTP-Method-Override ...
identigral's user avatar
  • 7,663
1 vote

PATCH Issue - {"Message":"The requested resource does not support http method 'POST'."}

Aside from other alternatives, a composite request would suffice. This method accepts a POST, and you can specify individual methods (like PATCH) for each of up to 25 requests. You'll just need to ...
sfdcfox's user avatar
  • 495k
1 vote
Accepted

Is there a way to do PATCH request with Marketing Cloud AmpScript or SSJS?

For anyone else who stumbles upon this: Yes, see this post; REST API Methods in AMPScript or SSJS
MIL's user avatar
  • 128

Only top scored, non community-wiki answers of a minimum length are eligible