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

    Alert Triggers in Twilio

    Alert Triggers in Twilio!

    Blog in Others

    What are Alert Triggers? Alert Triggers are nothing but alerts via webhook or mail you when number of error events cross the Trigger Value on…

    emails, HTTP request, Salesforce Account, Salesforce Triggers, Trigger Value
    shariq Sep 12, 2018
    5,404  Views
    Salesforce Implementation

    Your Salesforce Implementation Guide

    Blog in Salesforce Implementation

    Early-stage startups, mid-sized companies, large enterprises — no matter your size, you can only ignore the importance of implementing a Salesforce solution for so long.…

    Built-in Salesforce App, Company Workflow, Complex Decisions, Consultation Leads, CRM Industry
    Vention Aug 27, 2021
    2,873  Views
    New and Comprehensive Salesforce Certification Course%0A

    New and Comprehensive Salesforce Certification Course at JanBask Training

    Blog in Salesforce Certifications

    JanBask Training has announced the training and certification course in one of the topmost and market-leading CRM tool Salesforce. It is a well-known fact that…

    Salesforce, Salesforce Certification
    JanBask Nov 3, 2017
    4,655  Views

    Popular Salesforce Videos

    How Does SFCC (Headless Commerce) Different From Its Competitors and Why Is It Better? | Salesforce

    How Does SFCC (Headless Commerce) Different From Its Competitors and Why Is It Better? | Salesforce

    Video in Salesforce Stories, Salesforce Training

    Let's have look at which one is better SFCC, Shopify, Magento, or Woocommerce. Which one you should choose?  Have a glance at this extract from…

    salesforce, Salesforce Webinar, Magento, Salesforce MVP, Commerce Cloud
    Cyntexa Aug 30, 2022
    1,654  Views
    How to Close Complex Deals Fast with Salesforce CPQ+

    How to Close Complex Deals Fast with Salesforce CPQ+

    Video in Salesforce Stories

    CPQ Salesforce, or Configure, Price, Quote Software by Salesforce is a sales tool for companies to provide accurate pricing with any given product configuration scenario.…

    salesforce, Salesforce CPQ, CPQ, Salesforce Video, sales team
    Pooja Jun 11, 2020
    3,686  Views
    Integrate Salesforce with External System using REST API

    Integrate Salesforce with External System using REST API

    Video in Salesforce Integration

    In this video, Path to Code explains the following topics: - What is API? - Introduction to REST API - Using cURL to consume Rest…

    Salesforce Training, Salesforce Tutorial, Salesforce Apex, Salesforce Integration, salesforce
    Tulika Wadhwani Oct 31, 2022
    1,975  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.