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

    application solution

    Popular Salesforce Blogs

    Top 5 Ways a Salesforce CRM Can Help in Building Relationship with Clients

    Blog in Salesforce

    Customer Relation Management or CRM is absolutely helpful in increasing your business and generating higher revenues every day. To ensure that your business venture receives…

    Build Sustainable Relationships, Building and Maintaining Better Relationships, Building Relationship, Business, Business Empire
    360 Degree May 10, 2021
    2,130  Views
    Best Practices of Salesforce Change Management Methodology

    9 Best Practices of Salesforce Change Management Methodology

    Blog in Others, Salesforce Tutorial

    Implementing changes in Salesforce is a strain for an organization. A good change management plan seems hard but to avoid change pain it is good…

    Deployment In Salesforce, Salesforce Change Management, Salesforce Chatter, Salesforce Development, Salesforce Implementation
    Jaymin Nov 15, 2018
    16,773  Views
    Salesforce Operations

    6 Types of Salesforce Operations to Be Familiar With

    Blog in Salesforce

    Understanding the different types of Salesforce operations increases user productivity, boosts customer satisfaction and ensures that you are building in line with the best practices…

    Auto Launched Flows, Automation Rules, Best Practices for Salesforce, Best Productivity, Business
    Aziz Nicleson Nov 17, 2021
    3,228  Views

    Popular Salesforce Videos

    We are the Salesforce Development Company you are looking for!

    We are the Salesforce Development Company you are looking for!

    Video in Salesforce Development

    From startups to enterprises, we help organizations make more out of their Salesforce CRM. We are end-to-end Salesforce development experts. And yes, we will redefine…

    Salesforce Training, Salesforce Development, salesforce, CRM, Salesforce Consulting
    Algoworks Aug 18, 2020
    1,317  Views
    Salesforce CPQ Bundles - Why You Need Them and How to Create a Bundle

    Salesforce CPQ Bundles - Why You Need Them and How to Create a Bundle

    Video in Salesforce Products

    Salesforce CPQ stands for Configure, Price, and Quote. This tool simplifies the whole process of configuring product bundles, pricing them, and generating quotes for customers.…

    salesforce, Salesforce CPQ, Salesforce Admin, CPQ, Salesforce Administrators
    ENWAY Nov 2, 2023
    1,020  Views
    Client Side Search in Lightning Component Salesforce | Lightning Data Table

    Client Side Search in Lightning Component Salesforce | Lightning Data Table

    Video in Lightning, Salesforce Development

    In this video, I will implement the Client-Side Search functionality in Lightning Data Table in a Custom Lightning Component. Client-Side Search allows users to search…

    Salesforce Development, Salesforce Lightning, salesforce, Salesforce Tutorials, Salesforce Video
    Kapil Sep 15, 2020
    3,409  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.