Salesforce Scheduled Apex Class - Method doesn t exist

0 votes

I'm attempting to create an apex class that ticks a checkbox on a custom object when a given Date is fewer than 30 days out from today's date. The class is designed to run once a week to check for records that need to be updated on a regular basis. My code is built up of several snippets that I discovered in other threads, and I have no experience with Apex. I'm almost there, but I keep getting the following error: Method does not exist or has an erroneous signature: void DateCheck() from the type CustomersDateCheck.

global class CustomersDateCheck implements Schedulable {
global void execute(SchedulableContext sc) {
DateCheck();}

public static void DateCheck(Customers__c[] objects){


for(Customers__c obj: objects){
        if(obj.DateField > Date.today()){
            continue;
        }
        else{
        obj.FlowUpdateHelper__c = true;

        }
    }
}

}

Apr 5 in SalesForce by surbhi
• 3,810 points
25 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In SalesForce

0 votes
1 answer

Salesforce Scheduled Apex Class - Method doesn't exist

Please pass the parameter in the function ...READ MORE

answered Apr 6 in SalesForce by CoolCoder
• 4,360 points
19 views
0 votes
1 answer

Apex Class and Apex Trigger is invisible in Salesforce Developer Console

You'll need to create a new developer ...READ MORE

answered Mar 8 in SalesForce by anonymous
51 views
0 votes
0 answers

How to Write the Test class for Salesforce Apex Aura Enabled class?

stuck in here to write a test ...READ MORE

Mar 15 in SalesForce by surbhi
• 3,810 points
28 views
0 votes
1 answer

How can I rename my Apex Class name in Salesforce

If you wanted to do it through ...READ MORE

answered Apr 1 in SalesForce by CoolCoder
• 4,360 points
57 views
0 votes
0 answers
0 votes
0 answers

Salesforce Apex SingleEmailMessage with Template to User not contact

Im trying to send an email in ...READ MORE

Feb 28 in SalesForce by surbhi
• 3,810 points
176 views
+2 votes
2 answers

Salesforce Interview questions

Here are some questions very important for ...READ MORE

answered Jan 11, 2019 in Career Counselling by Suresh
• 720 points
1,827 views
0 votes
1 answer

How to connect to salesforce from tableau?

Hi, follow these steps to connect to Salesforce: 1. ...READ MORE

answered Mar 25, 2019 in Tableau by Cherukuri
• 33,010 points
286 views
0 votes
1 answer

Power BI - Salesforce

Hi, Follow below steps: 1. Go to Data source. 2. ...READ MORE

answered Mar 25, 2019 in Power BI by Cherukuri
• 33,010 points
172 views
0 votes
1 answer

What is the best training for Salesforce ADM-201 Exam?

Hi @Vardhan, I took Edureka's Salesforce Training that covers all ...READ MORE

answered Jun 3, 2021 in Others by Jaya
• 140 points

edited Dec 22, 2021 by Soumya 201 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP