1

I'm planning a deployment of a new Apex class and 2 triggers (fully tested in sandbox with SeeAllData=false) that processes new fields, some others will change (formula fields, etc). We already have approval processes and validation rules in place for the objects the deployed changes will affect, my question is: what happens to the existing records of the affected objects when the changes are deployed? Are the approval processes and/or validation rules triggered and run again for all the existing records?

We will have new data flows from an object's field to an other object's (new) field and I'm not sure if, after the deployment, basically everything will fail (the existing processes) because there will be missing data in the newly created mandatory fields for the objects.

If the problem is not clear I can try to give a practical example of the data flow.

1 Answer 1

1

Good question.

If you have approval processes or validation rules then during deployment, the test classes will run and based on the test methods written they might fire.

Secondly, for existing records they will be no impact until and unless you make changes to the existing records, means either you edit/update the existing records.

If you have a missing data then you can plan for migrating the data, so that process flow will work properly.

I would suggest you to deploy this functionality in fullcopy sandbox which is a replica of production, test well and then plan to deploy this in production.

And when you deploy in your fullcpoy sandbox, make sure you should run the test classes as opposed to default deployment.

2
  • Hi Santanu, thank you, I'm proceeding by creating a new Full Sandbox where I will deploy the changes from our Production instance. That is the safest I could ever think.
    – Alberto
    May 9, 2018 at 11:00
  • 1
    First, deploy from your Dev sandbox to fullcopy and from fullcopy to production May 9, 2018 at 11:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .