Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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, 1 month 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

    application solution

    Popular Salesforce Blogs

    Top 6 Benefits of Salesforce QuickBooks Integration

    Blog in Salesforce integration

    QuickBooks is an essential accounting application that many businesses trust today. It allows accounting professionals to record transactions with ease and accuracy. Whether you're billing…

    Apps, Automated Recording, Automated Tools, Business, Client
    Apphienz Sep 28, 2021
    2,367  Views
    Percentage Calculator

    Standard and Custom Percentage Calculator in Salesforce Lightning Component

    Blog in Others, Salesforce

    Requirement We are going to calculate some standard percentage and custom percentage i.e. any percent you want to calculate any input number. On click of…

    Component Configuration, Custom Percentage, Developer Console, Lightning Component, Lightning Experience
    Deepak Oct 19, 2020
    6,476  Views
    AI Buddy App for Salesforce Einstein

    AI Buddy – An Einstein Assistant is Live Now

    Blog in AI and ML, Salesforce Einstein

    AI Buddy is Salesforce Manage Package App. AI Buddy is a friend of Einstein. It allows you to work with Einstein in admin style. You…

    Learn Einstein, Machine Learning, Salesforce Einstein
    0to1Code.Com Sep 13, 2017
    20,779  Views

    Popular Salesforce Videos

    Salesforce Grid Component Modernization with Webix Widgets

    Salesforce Grid Component Modernization with Webix Widgets

    Video in Others

    Take a break and watch a short video about how we modernized the Salesforce Grid component with Webix.

    Salesforce Components, Salesforce Developers, UI API in Salesforce, Salesforce Lightning Framework, Salesforce Grid
    Victoria Stanishevskaya Apr 29, 2019
    2,491  Views
    How Easy (or Difficult) is it to Transition from Salesforce Classic to Lightning Experience?

    How Easy (or Difficult) is it to Transition from Salesforce Classic to Lightning Experience?

    Video in Lightning

    This video answers the question of: How Do You Transition Your Company from Salesforce Classic to Lightning Experience? ▪️ How difficult is it? ▪️ How long should…

    Salesforce Lightning, Salesforce Lightning Experience, Salesforce Implementation, Salesforce CRM, Learn Salesforce
    Pooja Feb 26, 2018
    2,209  Views
    Dreamforce to You London 2019: Round-up Video!

    Dreamforce to You London 2019: Round-up Video!

    Video in Events

    Great to contribute to the Salesforce #Dreamforcetoyou event as a Cloud Social Influencer and here is my roundup.

    salesforce, Salesforce Events, Dreamforce 19, Salesforce VIdeos, Round Up Videos
    Ian Moyse Feb 3, 2020
    1,538  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.