New answers tagged

2 votes
Accepted

Formula field date subtraction

Simple date subtraction, as Amit suggests in the comments, would be a decent approximation. Datetimes (and their closely related cousin, Dates) can be subtracted to give you a decimal (in the case of ...
user avatar
  • 46.5k
0 votes

Formula field date subtraction

I found that I messed up the order of substraction. Below the correct way which is working: IF( AND(((YEAR(End_Date__c) - YEAR(TODAY()))*12) + (MONTH(End_Date__c) - MONTH(TODAY())) < 3,NOT(ISBLANK(...
user avatar
  • 2,068
1 vote

Get Records with condition not working in Flow

I found the issue with this flow. The choice group on the screen element is associated with a record choice set which is fetching all opportunity products for the opportunity and it did not have the ...
user avatar
2 votes

Illegal conversion from List<String> to List<Beverage__c>

Because Apex is strongly typed, you have to return the type of object that your method specifies - in this case a List<Beverage__c> You can either return an empty beverage list ie: return new ...
user avatar

Top 50 recent answers are included