
In the Notification Center in Creatio (located in the right sidebar), you’ll see notifications for tasks you have been assigned. One of the options there is to postpone the task for a period of time, however, the choices might not suit the way your company works. Luckily, you can easily add more options to this postpone menu with a bit of code. Out of the box, you’ll see the following choices:
What if postponing a day (at most) isn’t enough? I recently had a request to add some additional options to this menu for “3 days”, “1 week”, and “2 weeks”. To modify this menu, you’ll need to create a replacing client module for ReminderNotificationsSchema. In that schema, you’ll find a method named getNotificationActionButtonMenuItems where it creates this menu. This function creates each menu item and provides the number of minutes. It then returns the collection of menu items. All we will need to do is get the collection returned by the original function, then add ours to it and return it all. The code for the replacing client module for ReminderNotificationsSchema will look like this:
define("ReminderNotificationsSchema", [], function() { return { entitySchemaName: "Reminding", methods: { getNotificationActionButtonMenuItems: function(bindToFunction) { var menuItems = this.callParent(arguments); var menuItemsConfig = { "4320": "3 days", "10080": "1 week", "200160": "2 weeks" }; this.Terrasoft.each(menuItemsConfig, function(caption, time) { var buttonMenuItem = this.getButtonMenuItem({ "Caption": caption, "Click": {"bindTo": bindToFunction}, "Tag": time, "MarkerValue": caption }); menuItems.addItem(buttonMenuItem); }, this); return menuItems; } }, diff: [] }; });
Now, with that code in place, the postpone menu will look like this:
Subscribe To Our Newsletter
Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!
You have Successfully Subscribed!