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 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 Backup

    Should You Do Salesforce Backup — All You Need To Know

    Blog in Data, Salesforce Data integration

    If you ever lost your data, you know how devastating it is. But what if this data affects the entire enterprise's functioning? Dealing with sensitive…

    Backup Copies, Backup Data, Backup Tool, Corrupt Data, data
    Olena Prykhodko Apr 1, 2022
    3,028  Views
    Salesforce consulting companies help your business grow

    How do Salesforce consulting companies help your business grow?

    Blog in Salesforce Consultant

    Salesforce has time and again proven to be the best platform-as-a-service cloud CRM in the world. At present, Salesforce is the most widely used cloud…

    Customer Experience, Salesforce Applications, Salesforce Apps, Salesforce Consultant, Salesforce Consultants
    Algoworks Aug 13, 2019
    6,528  Views

    Salesforce: How AI, CRM, and Einstein 1 Are Transforming Businesses in the USA

    Blog in Salesforce Einstein

    Businesses are rushing to improve their customer interactions, optimise processes, and achieve growth in today's fast-paced digital environment. Salesforce, the world's Top AI-powered CRM platform…

    best Salesforce Consulting Partner in the USA, Business Automation, CRM, CRM and AI Solutions, CRM Optimization
    AwsQuality Sep 17, 2024
    703  Views

    Popular Salesforce Videos

    How to Become a Salesforce Consultant at Any Age

    How to Become a Salesforce Consultant at Any Age

    Video in Salesforce Consultant

    Companies are in great demand of skilled Salesforce consultants as a means to achieve their Salesforce objectives for better output in their business. With the…

    Salesforce Development, Salesforce Security, Salesforce Sales Cloud, Salesforce Service Cloud, Salesforce Consultant
    Hazel Jan 9, 2018
    1,844  Views
    Enhance Multi-Select Picklist Functionality With Flows to Increase Reportability | Salesforce

    Enhance Multi-Select Picklist Functionality With Flows to Increase Reportability | Salesforce

    Video in Salesforce Training, Salesforce Automation

    Multi-select picklists are AMAZING but have some MAJOR downsides. Do you like the functionality of muti-selects but hate reporting on them? Does the easy user…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Warren Oct 29, 2020
    3,498  Views
    Data Migration - Salesforce Admin Tutorial

    Data Migration - Salesforce Admin Tutorial

    Video in Data

    In this video, Zorial Salesforce Tech gives a quick k overview of how to migrate data using Salesforce. He goes over some key points to…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Data, Salesforce Admin
    Rahul kapoor Nov 7, 2022
    1,624  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.