You need to sign in to do that
Don't have an account?
rajat Maheshwari 6
Managed Package - Unable to undelete the trigger
Hi there, Hope you are doing great !!! Could you please help me to resolve this issue - ApexTrigger get delete from "RealDesk"Managed Released Package before 7 days, that need to be undelete but when we click on undelete it giving option "The record you attempted to access has been deleted. The user who deleted this record may be able to recover it from the Recycle Bin. Deleted data is stored in the Recycle Bin for 15 days. " but those trigger Not available in Recycle Bin to recover and those are still accessible with query "select ID,Name from ApexTrigger where Status='deleted'" Id Name 1 01qi0000000jWjIAAU AccountTrigger 2 01qi0000000jWjKAAU TaskTrigger 3 01qi0000000jWjOAAU ContactTrigger we want those 3 trigger to be undelete. Thanks Rajat Maheshwari
You are using a managed package?
The field Body contains the complete source code (perhaps, if not hidden) if the undelete is impossible.
select ID,Name,Body from ApexTrigger where Status='deleted'
Deleted - The trigger is marked for deletion. This is useful for managed packages, because it allows a trigger to be deleted when a managed package is updated.
After you've uploaded a Managed - Released package, you may find that a component needs to be deleted from your org. One of the following situations may occur:
- The component, once added to a package, can't be deleted (... totally?).
- The component can be deleted, but can be undeleted from either the Deleted Package Components page or through the Recycle Bin
https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/packaging_managed_component_deletion.htmAlthough a component is deleted, its Name remains within Salesforce. You can never create another component with the same name. The Deleted Package Components page lists which names can no longer be used.
To access the Deleted Package Components page, from Setup, enter Packages in the Quick Find box, then select Packages. Select the package that the component was uploaded to, and then click View Deleted Components. If a component can be retrieved through the Recycle Bin, it can also be retrieved through this page. You can retrieve the following types of components from here.
- Apex classes and triggers that don't have global access.
http://https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/isv_viewing_deleted_components.htmIf you have written triggers with global access, you are perhaps in a damned situation. You can never create another component with the same name anymore and you cannot undelete the trigger. So these deleted triggers are totally lost even if you can see them again with SOQL and they prevent new creations with the same names.
Cheers
Alain