Case
I cannot select an opportunity in the [Activity] section if the [Account] and [Contact]] fields are populated. If the [Account] and [Opportunity] columns are populated, adding a contact erases the opportunity.
Solution
Remove filtering by the [Contact]-[Opportunity] columns (most customers assign opportunities to accounts).
- Replace the ActivityPageV2 activity page
- Add the following code to the replaced schema:
define("ActivityPageV2", ["BusinessRuleModule"],
function(BusinessRuleModule) {
return {
entitySchemaName: "Activity",
rules: {
"Opportunity": {
"FiltrationOpportunityByContact": {
"ruleType": BusinessRuleModule.enums.RuleType.DISABLED
}
}
},
details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/
};
});