Specify the top-level objects in the following code:
//Triggers
helpers.for_each(["Opportunity", "Account", "Contact", "Action", "Mail", "Event", "Task"], function(type)
{
scheme.triggers.add_simple_trigger(form_helpers.native_show, null, type, null, "show");
scheme.triggers.add_simple_trigger(form_helpers.native_show, null, type, null, "cp_show");
});
The array for helpers.for_each
contains the list of top-level objects that CRM Desktop can open. You must add the name of the object to this array. For example, for Service Request, you add the following code:
(["Opportunity", "Account", "Contact", "Action", "Mail", "Event", "Task", "to-level_object
"]
where:
- top-level_object specifies a top-level object that your customization includes. For example, use the following code for the Service Request object:
(["Opportunity", "Account", "Contact", "Action", "Mail", "Event", "Task", "Service Request"]