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

    Twilio Integration With Salesforce Part I - How to Send A Message From Salesforce to a Phone Number

    Blog in Salesforce integration

    This blog is the first part of  Two part blog on Integrating your Twilio Account with Salesforce. In this blog, I will be displaying how…

    Developer Console, Http, HttpRequest, HttpResponse, PaaS
    Parantap Sep 16, 2019
    18,371  Views

    How to Integrate Calendly with Salesforce: A Detailed Guide

    Blog in Salesforce integration

    In today’s fast-paced business environment, efficiency in scheduling and managing appointments is crucial. Integrating Calendly, a popular scheduling tool, with Salesforce, the leading customer relationship…

    Calendar Integration, Calendar Sync, Calendly, Calendly Events, Calendly Features
    Kizzy Consulting Jun 12, 2024
    837  Views

    Give your Salesforce Data the Protection It Deserves

    Blog in Salesforce Security

    If your business deals with a lot of data and relies on Cloud-based Salesforce technology, then you know how crucial it is to make sure…

    Archive on Cloud, Automated Daily Backup, Automatic Backup, Automatic Report, Backup and Recovery
    Gaurav kumar Apr 7, 2022
    4,253  Views

    Popular Salesforce Videos

    Agile in Salesforce | Agile Salesforce Implementation

    Agile in Salesforce | Agile Salesforce Implementation

    Video in Salesforce Implementation

    Watch this video to learn about Agile Salesforce Implementation When Salesforce met Agile Agile vs Waterfall Introduction to Scrum Scrum Roles Scrum Ceremonies Q&A

    Salesforce Training, Salesforce Tutorial, Salesforce Implementation, Salesforce Video, Salesforce Learning
    Jogender Jun 29, 2021
    2,761  Views
    Salesforce Developer Career Path | How to Become Salesforce Developer

    Salesforce Developer Career Path | How to Become Salesforce Developer

    Video in Salesforce Training

    Watch this video to get a good idea about the Salesforce Developer Career Path. In this video you will learn how to become Salesforce Developer.…

    Salesforce Training, Salesforce Developer, Salesforce Video, Salesforce Career, Salesforce Learning
    Nauman Jul 29, 2021
    1,777  Views
    Salesforce Apex Class | Salesforce Development | SFDC Development

    Salesforce Apex Class | Salesforce Development | SFDC Development

    Video in Salesforce Apex

    This video covers how to create an Apex Class in Salesforce and Execute the Apex Class. Do let us know in the comment section if…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Apex, salesforce
    Abhishek Dec 20, 2021
    3,511  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.