Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created June 28, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/84372f06ac18d1a0c56a299a52f98c38 to your computer and use it in GitHub Desktop.
Save arun12209/84372f06ac18d1a0c56a299a52f98c38 to your computer and use it in GitHub Desktop.
OpptyCloseTimerCntrl
/* 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