Home / Apex

Apex

On-View triggers in Salesforce (trigger for Opportunity Contact Roles)

Native Opportunity Limitations One current limitation with Salesforce.com native Opportunities model is the inability to have a trigger on the Opportunity Contact Role object. Say you have built a custom Opportunity rollup or scoring mechanism of some variety and it relies upon what/who the user selects in the Opportunity Contact Role area: how will you …

On-View triggers in Salesforce (trigger for Opportunity Contact Roles) Read More »

Setting Lead Assignment Rules with Apex

If you want to create a new Lead via Visualforce or web form with Apex it’s very possible you could overlook the Assignment Rules.  As you might know, it’s not even always obvious on the native Lead creation layout.  Notice the lower left corner checkbox in the screenshot below. To enforce Assignment Rules in Apex …

Setting Lead Assignment Rules with Apex Read More »