Hi folks,
I put this together over the last couple of days. Apparently creating modules is my most recent method of keeping myself from running.
Anyway, it is a very basic module right now, but I am looking for suggestions for improvements.
In short, it is a logic hook that integrates the Cases module with Twitter. How so? After installing it, a new field is added to the cases module. It is a check box field named "Tweet Update." Add this field to your EditView via Studio because you will need to be able to edit it in order to use the module.
NOTE: In my testing, it kept installing the field as a "required" field, which it should not be. Please let me know if this occurs to you as well, as it would seem to indicate there is a bug within the Module Loader, but need verification.
Secondly, look in <sugar>/custom/modules/Cases. You will see a casetwit_config.php file in there. Edit it and put in your corresponding Twitter info.
Now that you've set everything up, you are ready to use it.
Here is how it works (right now):
If you edit a Case and set its status to "Closed," and you've checked the box for "Tweet Update," the logic hook will kick in and send the following info via the defined Twitter account:
"Case #[case_number] was closed on: [current_date_time]"
How is this helpful? If you have customers following you on Twitter, they don't have to go fetch information about a case they may have submitted, especially if you have a dedicated Twitter account for your service/support team. e.g. @mycompany_support
Of course, the message can be easily modified and include other info. I left it rather generic as privacy issues might be a bit of a concern to some.
Some thoughts on features I want to add...
* Send updates when a particular field is changed
* Send updates when a related record is added (i.e. notes, pending item, etc.)
Please let me know what other items you think would be good to consider and I'll try to add them.
Download is available here:
http://www.sugarforge.org/projects/casetwit/
NOTE: Module package will only work on 5.2, but it can be manually applied to 5.0 and greater, all flavors.


LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks