+ Start a Discussion
Karthik B.ax1475Karthik B.ax1475 

Lookup relation with opp products

Hi Team,

 

We have a custom object which as a master detail relation ship with opportunity. Here our requirement is in custom object we need to have a look up field which populates only standard products that are attached to this opportunity.

 

 

Please help me to create this.

 

 

Thanks,
Karthik

ignatiuz_forceignatiuz_force

I believe you want to do this when the status of the oportunity changes right ?

If yes then you can write an apex "after update" trigger on opportunity object and copy the product from the "opportunity line item" to the "product " lookup field on your custom object.

 

Best Regards,

Ignatiuz