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

    application solution

    Popular Salesforce Blogs

    Salesforce Sales Cloud Features for Smart Management

    Blog in Sales, Salesforce Cloud Platform

    If you want to centralize your sales data, automate workflows, connect your team members, and use your data to power more deals, then yes. Sales…

    AppExchange, Automate Workflows, B2B, B2C Business Demands, Business Metrics
    qr solutions Apr 7, 2022
    2,540  Views

    All You Need to Know About Marketing & Commerce Cloud in Salesforce

    Blog in Others

    Marketing & Commerce Cloud in Salesforce Welcome back everyone; since you know about the sales and service cloud you guys must be curious about the…

    Artificial Intelligence, Automation, Behavior, Campaigns, CLOUD
    Mohit Kumar May 10, 2023
    1,632  Views
    Single Sign On (SSO)

    What is Single Sign On (SSO)? How does it work in Salesforce?

    Blog in Others

    Single Sign On by the name it is could be easily understood that single credentials to access multiple applications. It is a session service plus…

    Authentication Configuration, IDP, oAuth2, Protocol, Salesforce Service Providers
    shariq Sep 7, 2018
    8,581  Views

    Popular Salesforce Videos

    Apex Scheduler in Salesforce | Asynchronous Apex

    Apex Scheduler in Salesforce | Asynchronous Apex

    Video in Salesforce Apex

    Asynchronous Apex 1. Apex Scheduler 2. Interfaces in Apex Scheduler 3. Making callout using Apex Scheduler 4. Points to Remember Upcoming Video on How to…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Integration, salesforce
    kanika Jul 5, 2021
    3,061  Views
    Salesforce Commerce Cloud Vs Shopify – Which One Is Better

    Salesforce Commerce Cloud Vs Shopify – Which One Is Better

    Video in Salesforce Cloud Platform

    If you own an e-commerce business in today's time, it becomes imperative to have a right-fit platform that helps you stand out from your competition…

    Salesforce Training, salesforce, Salesforce Commerce Cloud, Salesforce Video, Salesforce Learning
    Cyntexa Jun 9, 2022
    1,959  Views
    Develop a Basic Slack App For Salesforce

    Develop a Basic Slack App For Salesforce

    Video in Salesforce Stories

    Build Slack Apps integrated with Salesforce. Use Heroku to host Slack apps built using Slack Bolt Framework and get connected to Salesforce using Node.js library…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Nauman Dec 7, 2021
    2,831  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.