function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Swaroopa Akula 2Swaroopa Akula 2 

how to get the product family from quoteline items list and how to populate in the quote/opportunity

Hi,

I have 'product family' field on the quote line items. On quote I need to populate the 'product family' field from quote line items and this field can contains multiple values.

Example: product family- product family1
                                         product family2
                                         product family3

quoteline item1 has product family1
quoteline item2 has product family2
quoteline item3 has product family3

In the quote if all the above quoteline items were added, In the 'product family' on quote it should have the all values(product family1,product family2,product family3). How can we achieve this problem?


 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Swaroopa,

I think you can have a lightning component on the detail page that could fetch the necessary details and show them on the record page.

>> https://www.sfdckid.com/2019/08/salesforce-lightning-component-to-display-contacts.html

Above is an example of showing contacts of an account on a lightning component, you can edit this code as per your use case and implement it.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.