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

    application solution

    Popular Salesforce Blogs

    Top 3 Salesforce Products to Transform Your Customer Engagement into a Value—Added Experience

    Blog in Salesforce

    From a customer perspective, it’s always a priority for businesses to deliver valuable service to them at a favourable price. Still, it’s also essential to…

    automated process, B2B, B2C, B2C and B2B Consumers, Business
    DemandBlue Apr 25, 2022
    2,236  Views

    Top 10 Salesforce Spring ’19 Release Features

    Blog in Salesforce Releases

      The Salesforce Spring ’19 Release is here, and you’ll now be able to explore the exciting new features and upgrades of the newest release.…

    Aura Components, Deals Cadences, Einstein Next Best Action, Email Templates, Flow Builder
    DemandBlue Jan 23, 2019
    3,377  Views
    fast turnover in Salesforce

    Fascinatingly fast turnover in Salesforce

    Blog in Coding and Scripting

    While in the previous article we were talking about a very interesting and fun challenge - however one looks at it, it is a challenge…

    Cloud Computing Salesforce, Salesforce Community, Salesforce Developers, Salesforce Development, Welkin Suite
    The Welkin Suite Aug 18, 2017
    3,767  Views

    Popular Salesforce Videos

    Non-technical But Want to Build Career in Salesforce?

    Non-technical But Want to Build Career in Salesforce?

    Video in Salesforce Stories

    In this video Shrey gave the answer to the following questions: 1. What is the next step after doing Certification in Salesforce Administrator? 2. How…

    Salesforce Training, Salesforce Tutorial, Salesforce Certification, Salesforce Administrator, salesforce knowledge
    Jogender Oct 12, 2021
    1,580  Views
    How to Prepare for Salesforce Platform App Builder (CRT-402) ?

    How to Prepare for Salesforce Platform App Builder (CRT-402) ?

    Video in Salesforce Certifications

    The Salesforce Platform App Builder certification focuses on the different declarative functions available to an admin. Development and code are not included, but it focuses…

    Salesforce Training, Salesforce Certification, Lightning Platform, Salesforce Video, Salesforce Learning
    Jogender Nov 6, 2020
    1,699  Views
    AMPscript Lookup - Salesforce Marketing Cloud Functions in 5 minutes

    AMPscript Lookup - Salesforce Marketing Cloud Functions in 5 minutes

    Video in Marketing, Salesforce Cloud Platform, Salesforce Training

    Salesforce Marketing Cloud functions in 5 minutes! In this video, Cameron Robert shows how Lookup() works in Salesforce Marketing Cloud using some helpful visuals to…

    Salesforce Training, Salesforce Tutorial, salesforce, Marketing Automation, Salesforce Marketing Cloud
    Cameron Jul 18, 2022
    4,064  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.