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 › Update field for ProductCode, ProductCodevsFieldName and ContractLineItem

    Tagged: Account Lookup, ContractLineItem, Custom Lookup, Fields in Salesforce, Line Item Object, Line Items, ProductCode, ProductCodevsFieldName, Salesforce Lookup

    • Salesforce® Discussions

      Update field for ProductCode, ProductCodevsFieldName and ContractLineItem

      Posted by Parv Shekhar Singh on May 31, 2018 at 7:51 AM

      Can anyone please explain me,I have a map of ProductCodevsFieldName(API name of Account Field). I want to update particular Field for particular ProductCode(i.e ContractLineItem have Product Code),Here ContractLineItem have a lookup to the Account?

      Aman replied 8 years, 3 months ago 2 Members · 1 Reply
      • Account Lookup
      • ContractLineItem
      • Custom Lookup
      • Fields in Salesforce
      • Line Item Object
      • Line Items
      • ProductCode
      • ProductCodevsFieldName
      • Salesforce Lookup
    • 1 Reply
    • Aman

      Member
      May 31, 2018 at 7:53 AM

      Hi Parv,

      Suppose you have an instance of ContractLineItem is ‘contractLineItemObject’ and a instance Map(i.e. You mentioned) is ‘mapofProductCodevsAccountField’.

      Then use,

      if(mapofProductCodevsAccountField.containsKey(contractLineItemObject.ProductCode)

      {

      String str = mapofProductCodevsAccountField.get(contractLineItemObject.ProductCode);

      contractLineItemObject.Account(str,’Value you want to assign’);

      }

      Thanks

    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

    SmartyStreet

    Salesforce SmartyStreet API Integration: A Comprehensive Guide

    Blog in Salesforce integration

    API is known as Application Programming Interface and is used to create a bridge between a website and other applications, data, or services. The APIs are…

    API, API Tool, api-integration, Application Programming Interface, Applications
    SP May 12, 2022
    3,505  Views

    Salesforce - Leading Player in the Game of Healthcare Management

    Blog in Salesforce

    In the rapidly evolving healthcare sector, technology is transforming patient care and operational efficiency. Innovations like Artificial Intelligence (AI), Virtual Reality (VR), the Internet of…

    Care Management, Data Protection, Data-driven Decisions, Digital Transformation, Health Tracking Apps
    Codleo Aug 2, 2024
    1,058  Views
    schema class

    Schema Class in Salesforce Apex | The Developer Guide

    Blog in Others, Salesforce Apex

    INTRODUCTION: Schema is a Namespace which is referred as Database. This namespace contains some classes and their methods to provide metadata information of Schema. Schema…

    Custom and Standard Objects, Metadata Information, Salesforce, Salesforce Apex, Schema
    Anuj May 13, 2020
    36,196  Views

    Popular Salesforce Videos

    Future of Salesforce Job Market | The Shrey Sharma Show

    Future of Salesforce Job Market | The Shrey Sharma Show

    Video in Salesforce Stories

    This is the very first episode of The Shrey Sharma Show with Christopher A Hopper. They discussed Salesforce. Below is a list of questions they…

    Salesforce Developer, Salesforce Consultant, salesforce, Salesforce Ecosystem, Salesforce Industry
    Nauman Sep 27, 2021
    1,580  Views
    Add Styles and Data to a Salesforce Lightning Web Component

    Add Styles and Data to a Salesforce Lightning Web Component

    Video in Lightning

    After completing this unit, you’ll be able to: Use CSS and Lightning Design System with a component. Get data from a Salesforce org. Deploy your…

    Salesforce Training, Salesforce Lightning, salesforce, Salesforce Org, Salesforce Video
    Rupal Kakkar Jul 21, 2021
    5,339  Views
    Salesforce Development Master Training | Salesforce Development Course

    Salesforce Development Master Training | Salesforce Development Course

    Video in Salesforce Training, Salesforce Development

    Shrey Finally launched the most awaited Salesforce Development Master Training. Features of the course are: Learn Salesforce Development from Scratch with more than 100 on-demand…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Certification, salesforce
    S2 Feb 8, 2022
    2,867  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.