Skip to main content
Danielle Hensley perguntou em #Apex
Trying to automate the sending of surveys through email on Salesforce by using a process builder. Need a special code to take the year out of the date field so the emails can be sent twice a year around the renewal  month and not just the year of the renewal.
2 respostas
  1. 1 de mai. de 2019, 18:57
    In apex you can use : 

    date myDate = system.today();

    integer year =myDate.year());

    ===

    SF formula

    YEAR( myDate ) it returns year of date.
0/9000