Created
June 28, 2019 15:12
-
-
Save arun12209/84372f06ac18d1a0c56a299a52f98c38 to your computer and use it in GitHub Desktop.
OpptyCloseTimerCntrl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Name:OpptyCloseTimerCntrl | |
* Description: Fetch the close date of opportunity record based record id. | |
* Created Date: 25/06/2019 | |
* LastModified Date: 25/06/2019 | |
* Created By: Arun Kumar | |
*/ | |
public class OpptyCloseTimerCntrl { | |
@AuraEnabled | |
public static Date fetchOpptyCloseDate(String recId){ | |
Opportunity opp = [select CloseDate from Opportunity where id =: recId]; | |
system.debug('Close Date: ' +opp.CloseDate); | |
return opp.CloseDate; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment