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 › 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 7 years, 7 months 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

    [adinserter block="12"]

    Popular Salesforce Blogs

    DML Operations in Apex | All You Need to Know

    DML Operations in Apex: All You Need to Know

    Blog in Salesforce

    In this Blog, we will study DML Operations in Apex. DML is used to insert, update, delete and undelete records.  We can use upsert to…

    Data Type, Database Queries, Database Query Languages, Developers, DML
    bhawana Jan 17, 2023
    2,639  Views

    Understanding The Flow of Salesforce Integration With Any Third Party API

    Blog in Others

    When it comes to Integration with any other Technology we all have doubts like : "How to Start ?" , "How to make your First…

    Rest API, Salesforce APIs, Salesforce Integration, Salesforce Lightning App
    Manpreet Apr 25, 2017
    16,326  Views

    Trailhead: Your Best Ally to Learn Salesforce

    Blog in Salesforce Trailhead

    Salesforce is one of the most used platforms in the business ecosystem. That is why the skills required for its successful operation are growing rapidly.…

    Apple, Badges, Badges on Trailhead, Best Practices, Business
    SkyPlanner Oct 4, 2021
    2,548  Views

    Popular Salesforce Videos

    What is Salesforce Roles? Explain in Details

    What is Salesforce Roles? Explain in Details

    Video in Salesforce Admin

    Salesforce Roles deals with the hierarchy of your organizations, So it will actually be based on the record level access and it can override the…

    Salesforce Training, Salesforce Tutorial, Salesforce Certification, salesforce, Salesforce Events
    CRS Mar 2, 2022
    2,525  Views
    Ask Me Anything with Salesforce Developers | Lightning Web Components

    Ask Me Anything with Salesforce Developers | Lightning Web Components

    Video in Lightning

    Join experts Mohith Shrivastava and Greg Whitworth for our monthly feature Ask Me Anything! This 1-hour session on Lightning Web Components is your chance to…

    Salesforce Training, Salesforce Tutorial, Salesforce Lightning, Salesforce Developers, Salesforce Video
    Nauman Apr 22, 2022
    1,536  Views
    Field Level Security In Salesforce

    Field Level Security In Salesforce

    Video in Salesforce Security

    Field-level security is a setting that lets Salesforce admins define user restrictions as to who can access specific org data. The setting lets the admin…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Admins, Salesforce Video
    Jogender Dec 24, 2020
    1,752  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.