New answers tagged

1 vote

Convert workflow rules with Evaluation criteria to Apex code

You just need to check the old value first: for(Integer index = 0; index < Trigger.size; index++) { if(Trigger.new[index].Status__c == 'Service' && Trigger.new[index].Status__c != ...
user avatar
  • 433k
1 vote

Workflow rule to update contact field. Syntax error missing ")"

So the calc would be something like this (using a case statement): CASE(1, IF(ISPICKVAL​ (Type_of_pet__c, "Dog"),​ 1, 0), "Dog",​​ IF(ISPICKVAL​ (Type_of_pet__c, "Cat&...
user avatar
0 votes

Prepopulating company name in Lead object

As per Triggers & Order of Execution, if the record is being created from standard UI, then the required field defined at page layout or field definition are evaluated first. So, before trigger (...
user avatar
  • 4,677
1 vote

Prepopulating company name in Lead object

If you Enable Person Accounts, the Company field is no longer required, and you can even remove it from the page entirely. Note that there are some considerations to be aware of, so try this in a ...
user avatar
  • 433k
0 votes

Notify owner when opportunity stage wasn't changed for more than 100 days

I've given it a try and set up the Schedule-Triggered Flow (e.g. can run every night). identigral (see the discussion in the comments) has surely more experience. As a start, I created a Flow variable ...
user avatar
8 votes
Accepted

Salesforce Flow Limitations - Loop vs Batch Records

What is the difference between a transaction and interview? A transaction is one complete execution unit as far as the server is concerned. I've always explained it as this: one debug log equals one ...
user avatar
  • 433k
2 votes

Can I prevent access to workflow rules in Production?

You can't stop someone from editing WFR in any org, including PROD if the user has Customize App permissions. Now, you shouldn't have anyone doing app customization in PROD. Changes should go through ...
user avatar
  • 62.3k
0 votes

Evalution criteria in record-triggered flows vs apex trigger

Evaluate the rule when a record is created, and every time it's edited" means irrespective of the old values if the record meets the criteria the trigger should execute . For The condition can ...
user avatar
1 vote

Any way to find the deleted workflow rules?

Workflow Rules have List Views. If you're certain you haven't deleted them, it might be you're using the wrong List View. You can also create a new List View if you want to customize the list.
user avatar
  • 433k

Top 50 recent answers are included