01-31-2018, 10:25 PM
In the vtiger_relatedlist table you have a tabid and a relatedtabid column. You are looking for the row that related Contacts (tabid=4) with Potentials (tabid=2) so you are looking for the row that has:
tabid=4 and relatedtabid=2
in that row you must change the name column to get_opportunities
tabid=4 and relatedtabid=2
in that row you must change the name column to get_opportunities
Joe
TSolucio
TSolucio