• subbu naraharisetty
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
public class studentMonth {
    //list<student__c> which returns the students 
    public static list<student__c> student(date d){
        //take the start of month
        date sd=d.toStartOfMonth();
        //add 30 days to the start of month
        date en=sd.addDays(30);
        list<Student__c> st=[select name,id,Email__c from Student__c where Date_of_Birth__c>=:sd and Date_of_Birth__c<=:en];
     //  system.debug(st);
       return st;
        //studentMonth.student(date.newInstance(1996,11,20));
       //list<Student__c> s=studentMonth.student(date.newInstance(1996, 10, 19));
      //system.debug(s);
        
    }
}
public class studentMonth {
    //list<student__c> which returns the students 
    public static list<student__c> student(date d){
        //take the start of month
        date sd=d.toStartOfMonth();
        //add 30 days to the start of month
        date en=sd.addDays(30);
        list<Student__c> st=[select name,id,Email__c from Student__c where Date_of_Birth__c>=:sd and Date_of_Birth__c<=:en];
     //  system.debug(st);
       return st;
        //studentMonth.student(date.newInstance(1996,11,20));
       //list<Student__c> s=studentMonth.student(date.newInstance(1996, 10, 19));
      //system.debug(s);
        
    }
}
Hi Techie's,
Please help me out
here the scenario when i insert a account record with name 'Test A' and the folder sholud be created with the 'Test A' in Box.com
As Box Supports OAUTH Authentication it is having with conflict with writing trigger ..can any one help on this 

Thanks ,
Ram