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, 9 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

    Unleashing CRM Automation with Agentforce 2.0 and Salesforce Data Cloud

    Blog in Salesforce Cloud Platform

    In 2025, Customer Relationship Management is undergoing a radical transformation—powered by AI and enterprise-grade data orchestration. With the launch of Agentforce 2.0, Salesforce is delivering…

    Dean Sep 5, 2025
    568  Views

    Managed Services: A Better Way to Administer Salesforce Deployments

    Blog in Salesforce, Salesforce Implementation

    Consistent support and ongoing innovation are keys to a profitable Salesforce CRM. But keeping ongoing support for Salesforce requires a substantial portion of your investment…

    App Cloud Tools, Businesses, Campaigns, Consulting, Contract Flexibility
    Carol May 11, 2022
    2,448  Views

    Top Salesforce Spring '22 Features in Nonprofit and Education Cloud

    Blog in Salesforce Releases

    Salesforce stays at the top of its game by releasing the latest features for every cloud. Let's have a look at the new Spring '22…

    Application Inquiries, Campaign Performance, ChatBot, Data Model, Data-driven Predictions
    Apphienz Mar 4, 2022
    2,112  Views

    Popular Salesforce Videos

    Salesforce Admin Training: How to add custom fields in salesforce ?

    Salesforce Admin Training: How to add custom fields in salesforce ?

    Video in Salesforce Integration

    Salesforce Custom fields :- Up to now we have created custom app, custom object and now we are going to create Salesforce custom fields. When…

    Salesforce Integration, Salesforce Customization, Salesforce Objects, Salesforce Data, Salesforce Account Management
    Pooja Mar 27, 2018
    1,628  Views
    Creating a Salesforce Lightning App in 12 Minutes

    Creating a Salesforce Lightning App in 12 Minutes

    Video in Lightning

    Salesforce is the easiest and quickest way to make quality enterprise apps using clicks instead of code.This video attempts to demonstrate just how quick and…

    Salesforce Tutorial, Salesforce Developer, Salesforce Lightning Experience, Lightning App Builder, Salesforce Lightning Development for Beginners
    Jogender Nov 21, 2018
    3,069  Views

    Salesforce Quickbooks Integration | eShopSync for Quickbooks

    Video in Salesforce Integration

    Product Sync? Invoice Sync? And more? eShopSync for Quickbooks brings out the best-class solution for Salesforce Quickbooks Integration. Click on the link to know more:…

    Salesforce Integration, salesforce, Salesforce Quickbooks Integration, Salesforce Video, Salesforce Learning
    Deepika Jul 23, 2020
    2,226  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.