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

    Marketing Automation

    Salesforce Marketing Automation and its Benefits

    Blog in Salesforce Cloud Platform

    Salesforce Marketing Automation is an incredibly powerful tool that can help businesses of all sizes optimize their marketing efforts.  With Marketing automation one can automate…

    Automate Marketing Process, Automation, Brand Awareness, Campaign Management, Campaigns
    SP Jul 25, 2022
    3,064  Views
    Send csv File

    Send .csv File to Another Org in Salesforce

    Blog in Salesforce, Salesforce Apex

    In this blog, we will see how to send the CSV to another org Using Salesforce Integration.  First, you need to upload a CSV file,…

    Client Secret, Create Remote Site Setting, CSV, CSV File, Developer Console
    krati vishnoi Jan 8, 2021
    8,369  Views
    Lightning Web Component

    Javascript for Lightning Web Component | Salesforce Lightning

    Blog in Lightning, Salesforce

    Lightning Web Component is an updated web standards-based framework method for creating lightning components on the Salesforce platform. LWC is built using HTML, CSS, and…

    API, Arrow Function, CSS, CSS Selector, Data Manipulation
    bhawana Sep 16, 2022
    2,878  Views

    Popular Salesforce Videos

    Sharing and Visibility With Salesforce

    Sharing and Visibility With Salesforce

    Video in Salesforce Stories, Salesforce Training

    Watch this amazing to understand the Salesforce sharing model, and how to structure profiles, roles, and sharing rules to control visibility. Do let us know…

    Salesforce Training, salesforce, Salesforce Video, Salesforce Learning, Sharing and Visibility
    Jogender Nov 20, 2020
    1,987  Views
    Boosting your Application's Marketing through Salesforce AppExchange

    Boosting your Application's Marketing through Salesforce AppExchange

    Video in AppExchange, Salesforce Apps

    Explore the key benefits of AppExchange, the largest business app marketplace, and discover how you can tap into its vast ecosystem of potential customers. In…

    Salesforce Developer, salesforce, Salesforce Hulk, Salesforce Webinar, AppExchange
    Cyntexa Sep 18, 2023
    1,624  Views
    Top 4 Ways Sales Leaders at Salesforce Use Einstein Analytics

    Top 4 Ways Sales Leaders at Salesforce Use Einstein Analytics

    Video in Salesforce Einstein

    Here's a peek behind the curtain at four of the top ways sales leaders at Salesforce use Einstein Analytics to manage pipeline and coach their…

    Salesforce Training, salesforce, Salesforce Einstein, Salesforce Video, sales
    Neha Yadav Sep 29, 2020
    1,670  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.