Results 1 to 6 of 6

Thread: How to find accounts with no activity

  1. #1
    samrpeters is offline Junior Member
    Join Date
    Apr 2009
    Posts
    2

    Default How to find accounts with no activity

    Hi there,

    When our sugar deployment was set up a previous manager had the wonderful idea of adding loads of accounts for potential customers.

    I would like to try and remove some of that clutter so its clearer who we are actually working with. I have been going through manually and deleting empty accounts but with another 5,000 to go i was wondering if there was some way of detecting the accounts i want to delete and removing them en mass

    Is there some way to use the report functionality to identify accounts that ...

    - Don't have any opportunities?
    - Don't have any calls or activity?
    - Don't have any products?

    While i'm the admin of our Sugar deployment its hosted by Sugar UK so i can't do any work on the database directly.

    Any help would be greatly appreciated
    Sam

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to find accounts with no activity

    Hi Sam

    If you are using the SugarCRM PRO I believe you can generate some Reports which return such list of inactive accounts.
    Or you can develop an action for Accounts module which can identify such Accounts and display it on a ListView.

    Contact us if you need this feature.

    Kind regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: How to find accounts with no activity

    Andre,

    building the query is obviously the easy part, but could you give an outline of how you would build an action to execute that query and display the results in a listview? Listview being the difficult part.

    Tx
    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to find accounts with no activity

    You need to create a new views from view.list.php, which will be the report engine.
    Have a loop on modules/Campaigns/controller.php
    This file illustrates how to define a new action 'newsletterlist'.
    Then look for this view in the modules/Campaigns/views/view.newsletterlist.php
    And then look for the definition on modules/Campaigns/metadata

    Use this same concept to create your own view.list.php.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    samrpeters is offline Junior Member
    Join Date
    Apr 2009
    Posts
    2

    Default Re: How to find accounts with no activity

    Hi All,

    Thank you for your comments, would it be possible to do this using just the functionality built into the reports module? As i mention i don't have access to the PHP or database side of the platform so anything i do has to be through the user interface.

    Thanks again for your help
    Sam

  6. #6
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: How to find accounts with no activity

    Hi Sam,

    If you are familiar with SQL and create a few SQL queries that connect the accounts to the Opportunities, Activities, etc, where you set the deleted field in the accounts module equal to 1 (instead of creating a DELETE statement -- just in case you need to reverse) where there are no matches in those related tables, then you can create a case via the Sugar Case portal asking Sugar UK to run these queries. This should be covered under your support with Pro.
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Contact under Activity Subpanel in accounts
    By adityaagashe in forum Developer Help
    Replies: 2
    Last Post: 2009-04-01, 06:30 AM
  2. Activity related to accounts
    By tomfrench in forum Help
    Replies: 1
    Last Post: 2008-11-20, 03:29 AM
  3. Replies: 1
    Last Post: 2008-08-27, 02:29 PM
  4. Replies: 4
    Last Post: 2006-07-19, 03:10 PM
  5. Relate Activity to multiple accounts
    By amostafa in forum Downloads
    Replies: 1
    Last Post: 2005-12-15, 04:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •