New answers tagged

3

I'd revisit the idea that you should only ever have one trigger per sObject - Apex Trigger Tip: Using One Trigger Per Object To Control Logic. Generally speaking - this is very good advice. But why? We do it to maintain control over the order of execution. If you just piled new triggers into the org every time you needed something new and Salesforce is ...


1

You can make your existing trigger call a packaged class method , so both of the behaviours are processed in the same trigger. Create a new class TrgAccount in your new package (namespace MyNs). global class TrgAccount { global static Account execute(Account account) { // Add more arguments if necessary // Do whatever you need here ...


0

If I understood correctly, you are developing an unlocked package and other people are developing other unlocked packages as well. After that you install them into a developer org to test. If that's the case, then you don't need to do anything besides installing the newest version of your package into the org. In API version 45.0 and later (salesforcedx ...


0

If your package is a Managed Package or Unlocked Package, you can "install" it as an update using Salesforce DX CLI: sfdx force:package:install --package "package@1.2.3" If your package is an Unmanaged Package, you must uninstall the old version to install the new. I strongly recommend using Unlocked Packages if you're not packaging for the AppExchange, ...


1

It does appear this error was the result of something done on the Salesforce API side. Trying again 3 hours ago, the command did execute successfully (though it took a bit longer). Should I get any details from the support case, I'll update this.


4

You should be able to do this through a metadata deployment. If you have a test environment, you can try this out to see if it works. In API version 44.0 and later, you can do this all through the Flow metadata type (no need for FlowDefinition). https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_visual_workflow.htm You'll want to ...


Top 50 recent answers are included