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, 2022 in SalesForce by surbhi
• 3,820 points
773 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, 2022 in SalesForce by CoolCoder
• 4,420 points
491 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, 2022 in SalesForce by anonymous

edited Jun 19, 2023 by Khan Sarfaraz 2,706 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, 2022 in SalesForce by surbhi
• 3,820 points
2,056 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, 2022 in SalesForce by CoolCoder
• 4,420 points

edited Jun 19, 2023 by Khan Sarfaraz 4,334 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, 2022 in SalesForce by surbhi
• 3,820 points
3,040 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
3,393 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,030 points
1,039 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,030 points
755 views
0 votes
2 answers

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

Hi @Vardhan, I took Edureka's Salesforce Online Training, ...READ MORE

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

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