I am working on a project where I need to deploy the zip file back to the production org which I got after the retrieve() call.
Things that I tried:-
- Firstly, I tried to deploy the complete zip file using the deploy() metadata call. but since in production, we must explicitly need to make rollback on the error as true. so, if any one of the file's deployment gets failed then complete deployment's success became false
because of these 65 failed components, my whole deployment failed(even I tried to fix why these 65 components are failing manually, but that doesn't seem to be a permanent solution as for different org different error is coming for same metadata types)
- Secondly, What I tried is to retrieve a single metadata component at a time and then deploy that single retrieved back. Here, I have tried multiple datatypes {Appex class, Email template} All the files which are present inside the package.xml are successfully deployed (componentSuccesses(all files)) but the deployment success is still false. for both the metadata types same error message is coming. ( for email deploy)
Any lead, how can I achieve this deployment feature.
faxTrigger
, because a Trigger needs to at least be called once in tests to be deployed. Not jotting this down as an answer due to the first question being unclear.