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

    salesforce integration

    The Most Common Types of Salesforce Integrations

    Blog in Salesforce integration

    The combination happens when separate individuals or things are united, similar to the coordination of understudies from the entirety of the area's primary schools at…

    Apex Web Services, Business Logic, Customer Application, Data Integration, Enterprise Web Services
    Marziya Apr 21, 2020
    11,474  Views

    From Amateur to Pro: How Salesforce's Customer Success Platform Drives Results

    Blog in Salesforce Stories

    Customer success experts are in high demand because you can make good money with it. It's about pipeline growth, customer retention, and loyalty, which is…

    Artificial Intelligence, B2B Customer Experience, B2C Area, Cloud-Based Architecture, Co-Innovation
    Annu Aug 28, 2023
    1,251  Views
    Configuring Salesforce Lightning Components for Custom Actions

    How to Configure Salesforce Lightning Components for Custom Actions?

    Blog in Lightning, Salesforce customization

    Custom Actions are Object-specific actions.Object-specific actions let users create records that have automatic relationships to other records, make updates to specific records, interact with records…

    Custom Actions, Lightning Component Framework, Lightning Design System, Lightning Experience, Salesforce Customization
    Ratnakar Mar 14, 2018
    7,838  Views

    Popular Salesforce Videos

    Build Lightning Components with Salesforce DX

    Build Lightning Components with Salesforce DX

    Video in Lightning

    Learn how to get started with building Lightning Components, the Salesforce DX way. We'll leverage Base Components, Lightning Data Service, Salesforce CLI, Scratch Orgs, Salesforce…

    Salesforce Lightning, Salesforce Lightning Experience, Salesforce DX, Lightning App Builder, Building Lightning Components in Salesforce
    Portia May 8, 2018
    2,535  Views
    Marketing Cloud Connect: View Full Resolution Emails in Sales or Service Cloud

    Marketing Cloud Connect: View Full Resolution Emails in Sales or Service Cloud

    Video in Salesforce Implementation

    Thumbnails don't always cut it. Sometimes you need the full resolution Marketing Cloud email in Sales or Service Cloud to see what was sent to…

    Salesforce Training, Salesforce Tutorial, Salesforce Visualforce, Salesforce Rest API, Apex
    DB Mar 3, 2021
    2,215  Views
    Salesforce - How to Create and Debug Process Builders

    Salesforce - How to Create and Debug Process Builders

    Video in Salesforce Training

    Check out this video on how to debug Process Builders. Once you really get into building processes in Salesforce in can be confusing as to…

    Salesforce Training, Salesforce Developer, salesforce, Salesforce Video, Salesforce Learning
    Bradley Jun 11, 2020
    1,941  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.