5

As at Spring '21, 2GP managed packages do not support component deletion, as covered in the 1GP vs 2GP gap documentation. A rename is equivalent to delete (old name) and add (new name). Salesforce plan to add this ability in the future according to webinars and presentations around 2GP. Your solution, therefore, is to add back in the ExampleCtrl class to ...


2

You cannot deploy 'EmailServicesAddress' independently, they would be part of 'EmailServicesFunction'. Use VS code or Workbench and you should be able to successfully deploy Email Addresses. Was able to do successfully using workbench. Package.xml <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce....


2

Shorter answer: apparently, yes. Longer answer: Several casual attempts to get the tests to run out of order did not work, so it appears to be that the tests will run in the order you specify. However, without any formal documentation, there is no way to confirm that this will always be true for all possible configurations, and you should not rely on this ...


2

Generally speaking, for non-production orgs, you have several options available. Tooling Create POST /services/data/vXX.X/tooling/sobjects/ApexClass Update PATCH /services/data/vXX.X/tooling/sobjects/ApexClass/:Id PATCH /services/data/vXX.X/tooling/sobjects/ApexClass/Name/:Name Delete DELETE /services/data/vXX.X/tooling/sobjects/ApexClass/:Id DELETE /...


1

Make them a "Read-Only" or "Minimum Access - Salesforce" user, and then grant additional permissions for them as you need to (via a Permission Set). You can follow the Add Salesforce DX Users instructions in the Salesforce DX Developer Guide. A properly configured Developer Permission Set can include just the permissions needed to create ...


1

You can, assuming you understand how to configure the package.xml to include <types> ... <members>Account.Org_Account_Hierarchy</members> ... <name>ListView</name> </types> a resulting file in the objects (Account) folder after source org retrieval will give you the definition of a configured Hierarchy ...


1

First of all, the permission ContentHubGDrive is actually the permission Files Connect Cloud (hat tip to @DanielBallinger Mappings Between Salesforce Permissions) The target org of the deployment does have Files Connect enabled However, the running user of the deployment does not yet have Files Connect Cloud permission as that permission is embedded with the ...


1

The above one runs all the tests before deploying the changes, is there a way just deploy the changes without running local tests as it is just deploying in to my DEV org. -l NoTestRun should skip all unit tests. Note that you cannot do this when deploying to production, but it should work for any non-production type of org. Second question is if I am ...


1

Regarding your “True of everything?” question - No. Some changes are “Unsupported Metadata” which may vary depending on Salesforce’s roadmap and when you read this. Try the PlatformEventChannel metadata for Change Data Capture config. See https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_platformeventchannel.htm Most setup menu ...


1

The package.xml and destructiveChanges.xml (and in fact, pretty much the entire Metadata API) is case sensitive. Make sure the name of the trigger isn't ProductsforProductGroup or some other variation.


1

pse is the namespace for managed package "Professional Services Automation" by FinancialForce. You would need to install that package in the Sandbox prior to trying to deploy any components referencing that namespace (as a side note, there are only a few metadata types that you can actually update in a managed package, are you sure you have the ...


Only top voted, non community-wiki answers of a minimum length are eligible