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

    AngularJS in Salesforce Visualforce pages

    4 Reasons to use AngularJS in Salesforce Visualforce pages

    Blog in Salesforce, Visualforce

    If you ask a web or mobile app developer why they use AngularJS their first reply would be because it’s awesome. And then they would…

    Application Development, Data Binding, Deep Linking, Design Pattern, Development Process and AngularJS
    Algoworks Mar 3, 2020
    3,057  Views

    A Brief Guide to Set up Your Custom Domain for Salesforce Community Cloud

    Blog in Salesforce, Salesforce Cloud Platform

    There are a handful of ways to set up a custom domain in. But before you get there, setting up your domain name is considered…

    C panel, Cloud Security, CNAME, Community Name, Community Server
    LevelShift (formerly DemandBlue) Aug 25, 2020
    5,061  Views

    Salesforce vs Microsoft Dynamics

    Blog in Salesforce

    In the world of Customer Relationship Management (CRM) software, Salesforce, and Microsoft Dynamics are two heavyweights that often find themselves competing for the top spot.…

    AppExchange Marketplace, Australia, Automated Lead Scoring, budget, Business Growth
    Kizzy Consulting Nov 20, 2023
    1,144  Views

    Popular Salesforce Videos

    What is a Salesforce Architect?

    What is a Salesforce Architect?

    Video in Salesforce Training

    If you are not familiar with the ‘Solution Architect’ role then it can be explained relatively simply. Solution Architects are ultimately responsible for the ‘Solution’…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Algoworks Apr 29, 2021
    1,355  Views
    A day at Dreamforce Event!

    A day at Dreamforce Event!

    Video in Others

    Time to share with you all the Algoworks Experience at Dreamforce 2019. The fun at Dreamforce was unparalleled, come relish the Dreamforce week with us!…

    salesforce, Salesforce Events, Dreamforce 2019, Dreamforce 19
    Algoworks Nov 28, 2019
    1,774  Views
    Salesforce Tutorial - How to Create Custom App in Salesforce

    Salesforce Tutorial - How to Create Custom App in Salesforce

    Video in Others, Salesforce Training, Salesforce Apps

    Apps, Tabs, Objects are basic Building Blocks of Salesforce. In this video, I am explaining how exactly you will able to develop a custom app…

    Salesforce Tutorial, Salesforce Development, salesforce, Salesforce Apps, Salesforce VIdeos
    Sam J May 26, 2020
    3,256  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.