function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Peter_Peter_ 

uninstall unmanaged package - data loss? update thru ide and redeploy

we've created an unmanaged package and it has been installed in a production environment. The package added some classes and trigger plus custom fields in lead/contact.

 

1) If we unistall package the classes and trigger will be deleted, but i am unclear on exactly  what data will get lost

- specifically do we just lose the just the data that was in custom fields or do we loose all leads/contact since package was installed...or all leads/contacts?

 

2)What is process for updating the unmanaged package thru the  IDE?

 

my understanding is:

a) create an IDE Project against package

b) update code

c) save to server does NOT deploy the change so  use IDE to deploy

 

is this correct?

 

Peter

 

 

Ispita_NavatarIspita_Navatar

In salesforce we have 2 types of packages viz:-

 

1. Managed - these can have versions and  can be upgraded.

 

2. Unmanaged -  these donot  have versions and  cannot be upgraded. (This answers your second question, but yes probably you can just go into the code and change it as in unmanaged package code is not locked.

 

Coming to your first query about data on uninstalling a package the part of data which is part of package will be lost on uninstalling, in your case the custom fields.

 

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.