Questions tagged [deprecation]

Deprecation is the process of giving code a status (deprecated) that indicates that the code should be avoided.

Filter by
Sorted by
Tagged with
18 votes
1 answer
405 views

Archaeology: what happened in Salesforce API 11.1 to necessitate a point release?

I'm really curious about this. Here's the list of available Salesforce API versions for a given Apex Class: 29.0 28.0 27.0 26.0 25.0 24.0 23.0 22.0 21.0 20.0 19.0 18.0 17.0 16.0 15.0 14.0 13.0 12.0 ...
Matt and Neil's user avatar
12 votes
1 answer
220 views

Archaeology: what *was* object type 004?

So we've all eyeballed the various standard object Key Prefixes at some point and noted: 001 is Account 003 is Contact etc I've always wondered: what was 004? What about 002?
Matt and Neil's user avatar
10 votes
1 answer
666 views

Deprecate or remove an Apex Invocable Action from Process Builder in a Managed Package

We released global facing Invocable Apex Actions to be used by Process Builder, but would like to hide a couple of them from subscribing orgs. From the official documentation on invocable methods, ...
Brian Miller's user avatar
  • 5,212
10 votes
1 answer
1k views

<deprecated>false</deprecated> randomly appears in object metadata in managed package. Why?

Sometimes when I commit the latests changes in my managed package to my version control I see those changes in the XML metadata of my custom objects. I heard that Salesforce.com is working on some ...
Robert Sösemann's user avatar
9 votes
1 answer
2k views

Unable to push-upgrade managed app after deleting packaged VF page

I just tried out the new feature Streamline Managed Packages by Deleting Unused Components that came with Spring'15 and deleted a managed VF page called "Advanced Lookup Popup" including its ...
Robert Sösemann's user avatar
8 votes
2 answers
4k views

Developer name already exists for given entity or has been previously used. Please choose a different name

In my managed ISV package I have many deprecated classes. Some of the are global and I cannot change their signature and just mark them as @deprecated. To make it more obvious that a class is ...
Robert Sösemann's user avatar
7 votes
1 answer
876 views

Lightning Component Action Service - Alternative for 'deprecated' Exclusive actions?

Lightning Component Action Service uses a "boxcar" pattern to bundle server-side action requests into a single call, executes them all on the server, provides a bundled response and then the framework ...
Bryan Isbell's user avatar
7 votes
1 answer
899 views

VF page to list all deprecated components from package in customer org

It's so great that Salesforce.com allows to remove deprecated components from managed packages. We use that feature heavily to rework and improve our products. But what I am worried about is all the ...
Robert Sösemann's user avatar
6 votes
1 answer
1k views

Is it possible to deprecate and subsequently remove a public attribute of a Lightning Web Component in a managed package?

For example, with this following snippet, if I wanted to remove the property from the package, what would be possible to do? <targetConfigs> <targetConfig targets=“lightning__RecordPage”&...
Renato Oliveira's user avatar
6 votes
1 answer
179 views

Identify previously packaged now removed components in subscriber org

Most of the components that ISVs can remove/delete from their managed packages still exist in customer orgs that have the package installed. I want to provide my customers with a list (Visualforce ...
Robert Sösemann's user avatar
5 votes
2 answers
310 views

When (if ever) will testmethod fail to compile?

I just recently learned from the Apex Developer Guide documentation on the IsTest Annotation: The testMethod keyword is now deprecated. Use the @isTest annotation on classes and methods instead. ...
Adrian Larson's user avatar
  • 150k
5 votes
0 answers
125 views

Can't delete deprecated packaged Custom Object as it has a Flexipage?

Is it true that there is no way to remove a packaged Custom Object with a Flexipage attached to it? Flexipages can't be removed and the Flexipage itsself can be edited when it is packaged. If so, ...
Robert Sösemann's user avatar
4 votes
1 answer
499 views

Confusion about deprecation and deletion and the correspodings tests in managed packages

We have a managed package and we accidentally deprecated one of our classes - which is not that bad since it really was a deprecated class. But now we noticed that the deprecated class cannot be ...
Semmel's user avatar
  • 2,457
4 votes
1 answer
1k views

How do I deprecate/delete a master object part of a junction object which is part of a managed package?

Here is the scenario: As part of a managed package, we have 3 objects. Object A & Object C are Masters and Object B is the junction object between A & C. We packaged it all up and all good up ...
diablodeveloper's user avatar
4 votes
1 answer
389 views

Why is it not allowed to delete packaged Custom Labels?

In our managed package we replaced many custom pages with standard layouts. Now there is a bunch of Custom Labels that were useful before (e.g. for translation) but could be removed from the Managed ...
Robert Sösemann's user avatar
4 votes
1 answer
415 views

Customer org corrupted: Public class deleted in 1.2 magically gets deprecated in 1.1.1 patch

We pushed patch 1.1.1 of our managed app to a customer production org which worked fine in their sandbox for the last weeks. After the installation our customers faces compile-time type errors as Apex ...
Robert Sösemann's user avatar
2 votes
1 answer
378 views

How to find code deprecated by Salesforce?

Is there any way to find code deprecated by Salesforce in an Org codebase? When does a deprecated code statement start throwing an error? Example: Two aura component events aura:doneRendering and aura:...
Cloud Man's user avatar
  • 1,357
2 votes
1 answer
62 views

Can Support undo the (not yet released) deletion of a managed field?

The CustomChild__c object was tied to CustomParent__c using a mdr_BadlyNamed__c relation. I planned on replacing it with a better named field and knew that this meant some migration on each customer ...
Robert Sösemann's user avatar
2 votes
0 answers
2k views

Unable to push code: Defining testmethods methods must be declared as @isTest

new this week after SF patches in the inability to push code for our packages. We are trying to get around this bug: https://trailblazer.salesforce.com/issues_view?id=a1p30000000T0tvAAC but after ...
Eric's user avatar
  • 54.2k
1 vote
3 answers
4k views

Modifying a global class in a managed package with @deprecated

I'm currently working on refactoring a managed package that involves adding a new global method to a global class. From what I've read on managed packages, you can't edit global classes, because ...
coldspeed's user avatar
  • 701
1 vote
1 answer
888 views

How to determine whether it is safe to delete a custom object?

We have a number of custom objects in our org that look like they can be deprecated. Before I do so, I'd like to be sure it's not going to break anything e.g. connected apps etc. Is there a way to ...
Bradley Thomas's user avatar
1 vote
0 answers
83 views

Rest Api deprecation

When a salesforce rest api version will be deprecated? Is there any validity period for api version? Is there any deprecation process salesforce follows?
k.s.mahes prabakar's user avatar
1 vote
0 answers
156 views

Global methods in Deprecated class

I have a global apex class that I want to mark as Deprecated. What do I have to do with it`s global methods and global inner classes? Do I need to deprecate them or leave as they are? Thanks.
dim0_0n's user avatar
  • 143
0 votes
1 answer
182 views

How to deprecate a single function in a global interface

Can I deprecate a single function from a global interface that has been managed released? I was using this: global interface MyInterface { String getSomeString(); @deprecated Integer ...
user254875486's user avatar
0 votes
2 answers
1k views

Deprecate fields in standard object (User)

Several custom fields was added to standard SF object User and included in managed package. As I understood, they can't be deleted from new version of package, only marked as 'deprecated'. Can ...
anastsiacrs's user avatar
0 votes
1 answer
284 views

Best practices for upgrading a package

I have already released my package. However, I need to update this package with some fixes. I also have trialforce enabled, and I have created the trial templates. I would now like to update this ...
Kevin Bellati's user avatar
0 votes
1 answer
115 views

Cant downgrade SFDX to previous version 7.181.1 for scratch org script created by team

I need to downgrade to this version(7.181.1) as the whole team uses it for a scratch org script. I've tried using the most previous one I can find 7.199.2 and the most recent 7.209.6. Either one will ...
JEbert's user avatar
  • 11
0 votes
1 answer
343 views

Cannot delete @Deprecated component in a managed package even with SF deletion tool

We have a @deprecated apex class in our managed package and want to delete it. We logged a case to enable the Component Deletion Tool but still cannot delete the @deprecated component. Here's what I ...
Jorjani's user avatar
  • 2,212
0 votes
2 answers
74 views

does adding @deprecated to classes make packages installable in professional edition orgs?

does adding @deprecated to classes make packages installable in professional edition orgs? If your package has a class, you will not be able to install it in a professional edition org. A workaround ...
Danish's user avatar
  • 165