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 › You have written trigger on Opportunity and want to access field of Account. Can you use this Syntax – oppObj.Account.someField__c in Salesforce?

    Tagged: Account Field, Apex Triggers, Lookup Field, Salesforce Opportunity, Syntax, Visualforce Controller in Salesforce

    • Salesforce® Discussions

      You have written trigger on Opportunity and want to access field of Account. Can you use this Syntax – oppObj.Account.someField__c in Salesforce?

      Posted by Aman on September 22, 2018 at 6:05 PM

      You have written trigger on Opportunity and want to access field of Account. Can you use this Syntax – oppObj.Account.someField__c in Salesforce?

      shariq replied 8 years, 1 month ago 2 Members · 1 Reply
      • Account Field
      • Apex Triggers
      • Lookup Field
      • Salesforce Opportunity
      • Syntax
      • Visualforce Controller in Salesforce
    • 1 Reply
    • shariq

      Member
      September 22, 2018 at 6:05 PM

      There is common missunderstanding that what is allowed in Trigger Context. Above Syntax will work on any other places like Visualforce Controller. However in Trigger, Lookup field or related list is not available implicitly, we need to query it.

    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

    Salesforce Encryption Guide

    [Presentation] Salesforce Security – An Encryption Guide For The Paranoid

    Blog in Salesforce Implementation, Salesforce Security

    If you are using Salesforce, you would be having a lot of data stored in Salesforce objects. Some of it would be sensitive data, and…

    Salesforce Encryption, Salesforce Implementation, Salesforce Objects, Salesforce Security, Slideshare
    Abhay Dec 19, 2017
    6,914  Views

    Salesforce Code Builder is Officially Released

    Blog in Salesforce Releases

    Salesforce Code Builder has been officially released and is now generally available, offering a new web-based integrated development environment (IDE) that seamlessly incorporates open, modern,…

    AppExchange, Code Builder, CodeGen, CRM Configuration, Data Residence Requirements
    Cloudmetic Nov 29, 2023
    2,220  Views
    Dreamforce 2022 Highlights

    Dreamforce 2022 Highlights - Everything You Need To Know

    Blog in Salesforce, Salesforce Products

    The Salesforce’s annual event, “Dreamforce” was held in San Francisco from September 21 to 23, completing their 20 years of magnificence. This year’s event was…

    AWS, Azure, Business, Business Journeys, Carbon Credits
    Melonleaf Oct 14, 2022
    2,693  Views

    Popular Salesforce Videos

    Replicate Salesforce Data in Real-Time with Change Data Capture

    Replicate Salesforce Data in Real-Time with Change Data Capture

    Video in Salesforce Integration

    In this video, we will see how to replicate Salesforce data Migrate your batch processing, scheduled ETL, and nightly workloads to event-driven, real-time integrations using…

    Salesforce Training, Salesforce Tutorial, salesforce, Data Integration, Salesforce Video
    John Mar 12, 2021
    4,518  Views
    Salesforce Starter Suite and Pro Suite

    Salesforce Starter Suite and Pro Suite

    Video in Salesforce Products

    Selecting and implementing a new customer relationship management (CRM) software can be daunting for a small business. Luckily, Salesforce offers its Starter and Pro Suites,…

    salesforce, CRM, Software, Digital Transformation, Starter Suite
    DB Nov 25, 2025
    359  Views
    What are Roll-up Summary Fields in Salesforce? | How to create them?

    What are Roll-up Summary Fields in Salesforce? | How to create them?

    Video in Others, Salesforce Training

    In this video, Shrey is not only teaching but also demonstrating to you "What are Roll-up Summary Fields in Salesforce?". You will be learning: 1.…

    Salesforce Training, salesforce, Salesforce Video, Salesforce Learning, Journey with Salesforce
    Rupal Kakkar Sep 28, 2020
    2,022  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.