Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to schedule apex to update related records based on the Parent in Salesforce?

    Tagged: Account, Parent, Parent in Salesforce, Related Records, Salesforce Apex Code, Schedule Class

    • Salesforce® Discussions

      How to schedule apex to update related records based on the Parent in Salesforce?

      Posted by Prachi on December 10, 2019 at 6:33 PM

      I am trying to design a schedule class which updates the lookup fields on the custom object based on the look up fields selected in Account.

      This custom object is related to Account?

      I am stuck if I have to choose a for loop or a soql query nested inside the execute method or the schedule class?Please give me some ideas.

      Deepak replied 6 years, 8 months ago 2 Members · 1 Reply
      • Account
      • Parent
      • Parent in Salesforce
      • Related Records
      • Salesforce Apex Code
      • Schedule Class
    • 1 Reply
    • Deepak

      Member
      December 11, 2019 at 2:45 PM

      We generally avoid applying for loop in apex code as it will break governer rule so do the query for your program.

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    salesforce connections

    ‘The Killers’, And What’s Not Killing At Salesforce Connections ’18!

    Blog in Salesforce

    Salesforce Connections 2018 is just around the corner and we are as excited as you guys are! “The Killers” are coming to rock the event…

    Artificial Intelligence, B2C Marketing, Business, Business Functions, Commerce
    Algoworks Jun 3, 2018
    5,007  Views
    Business Process in Salesforce

    Learn About the Business Process in Salesforce

    Blog in Salesforce Admin

    A business process in Salesforce allows Admins to set up dedicated leads, sales, and support processes for each line of business of an organization. This…

    Business Process, Business Process for Opportunities, Business Process in Salesforce, Case Object, Case Resolutions
    Anshu Feb 23, 2022
    4,764  Views
    Salesforce Business Process

    Salesforce Business Processes - Learn Here!

    Blog in Salesforce

    Salesforce is a leading customer relationship management (CRM) platform that helps businesses streamline and automate various processes. With its wide range of tools and features,…

    Automation, Business Processes, Collaboration, Collaboration and Communication, Communication
    SELCUK Dec 16, 2022
    1,831  Views

    Popular Salesforce Videos

    Difference between Profile and Roles in Salesforce

    Difference between Profile and Roles in Salesforce

    Video in Salesforce Admin

    Learn about the difference between Profile and Roles? Watch this video and do let us know if you have any questions or concerns.

    Salesforce Training, Salesforce Tutorial, Salesforce Online Training, Salesforce Certification, Profiles In Salesforce
    CRS Mar 10, 2022
    2,347  Views
    Introduction to Lightning Web Components | Hello World | Key Concepts

    Introduction to Lightning Web Components | Hello World | Key Concepts

    Video in Lightning

    In this video, We are going to learn the new concept/technology that Salesforce has recently introduced to us. Below is the agenda that we are…

    Salesforce Lightning, How To Learn Salesforce Development, Easy Way To Learn Salesforce, How To Learn Salesforce Lightning, Salesforce Lightning Tutorial
    Victoria Jan 24, 2019
    2,198  Views
    Lead Together with Salesforce | Salesforce Partners

    Lead Together with Salesforce | Salesforce Partners

    Video in Salesforce Stories

    Learn more about the Equality Programs and initiatives that are available to Salesforce Partners, including the Salesforce Talent Alliance. Watch this video to learn all…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Guide, Salesforce Video
    Nauman Aug 4, 2021
    1,781  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.