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

Products Related list on Custom Object?

I have a custom object that we use to track our business from order through payment.  Part of that tracking includes what items are shipping, in what quantity and at what price.  I'd like to use the same functionality as our sales team uses on the opportunities - ADD PRODUCTS.  That works exactly as I need this to work, with a list of all products, the ability to select the relevant ones, enter a quantity, an extended price and track any comments as well.  I just can't seem to figure out how to get that functionality on a custom object.  


I considered using a different opportunity record type, but that won't work for a variety of reasons.  


So, is there a way to put the "Add Products" functions on a custom object?


The answer is using a custom VF Page.


Here is an example that you can use to develop your VF Page.


Hope this helps.


Guess I need to learn how to write VF pages pretty quickly!  I've been trying to avoid that, but it looks like I'm going to have to bite the bullet.  Thanks for the pointer to the example.  


I am trying to avoid a VF page also.  I need to put the Products with Add Row function into my Technical Case Page Layout.  If I read you correctly I think you were going to try and do this type of thing.  If you did can you send me the Visual FOrce code like Shailesh sent you but with your input for products??


We went another direction with the solution for this issue, and didn't end up using a custom VF page.  I wasn't up to writing it, and the estimates we got from 2 different partners were astronomical.  


If I may ask, what did you end up using?

Nagaraju Padidam 9Nagaraju Padidam 9
You can use a Junction Object to achieve this without any coding. Please refer to for full details detailed by Nebojsa Zgonjanin.