• Louis Keith
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
i will aatch error snapshots please find me where iam going wrong i cant resolve the error.User-added imageUser-added imageUser-added imageUser-added imageUser-added image
I have this formula: 

IF(ISBLANK(AVTRRT__End_Date__c ), (AVTRRT__Start_Date__c <= TODAY()) , (AVTRRT__Start_Date__c <= TODAY() && AVTRRT__End_Date__c >= TODAY()))

But the problem is that any placement with a date in the future is not included.
How do I change the formula to get startdates in the futurealso included?
How can i ignore the www. for not showing an error example (www.yahoo.com = yahoo.com; www.cs.org != www.cs.ph)
here is duplication method for my website. Thanks in advance

public static void checkDuplicateWebsite(List<Account> newRecord){
       for(Account a: newRecord){
           List<Account> account = [SELECT Id, Website FROM Account WHERE Website=:a.Website];
           if(account.size()>0){
               a.adderror('You cannot create a duplicate Website');
           }       
    }