CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviSMS »
  • CiviSMS should only record one activity for an outbound SMS
Pages: [1]

Author Topic: CiviSMS should only record one activity for an outbound SMS  (Read 1395 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
CiviSMS should only record one activity for an outbound SMS
October 18, 2012, 11:10:47 am
Hey there,

On the latest SVN version of CiviSMS, two activities are recorded when each SMS is sent out.  I am reasonably sure that this is not anything to do with Clickatell's 'SMS status notification' (though it would be cool to get that incorpated into statuses (so that you can have a status that represents that the SMS has left CiviCRM and one that represents that it has reached the persons phone).

We should only have one.  Sounds like a bug to me and I should file an issue. What do you think?
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: CiviSMS should only record one activity for an outbound SMS
October 19, 2012, 04:24:27 am
There are two categories of activity created -

1. The parent activity that is meant to specify that SMS action was initiated. Target contact to this activity is all the contacts to whom sms was sent.

2. The sms activity. This is created for every contact sms is sent to.

So if you sending sms to only 1 contact you would see 2 activities. But if send sms to say 3 contacts, you will see 4 activities.

So its always no of sms sent + 1.

I do agree that we should fix / improve if this looks confusing / redundant.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: CiviSMS should only record one activity for an outbound SMS
October 19, 2012, 07:31:53 am
Quote
1. The parent activity that is meant to specify that SMS action was initiated. Target contact to this activity is all the contacts to whom sms was sent.
The above activity seems quite redundant in my use case. I am wondering when the above activity would be useful.  I suppose it is useful to say that all of these SMS were sent at the same time.  Do you know of any times that this would be useful?  Are these activities linked by source activity or similar?  Is the process different when we are sending Bulk SMS?

The other thing this makes me think is that, for example, lets say I send out 25,000 SMS messages.  Do I then see 25,000 SMS activities under my own activity tab? That would get a bit unmanagable quite quickly.  So I guess we need to work out what to do in that case.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: CiviSMS should only record one activity for an outbound SMS
October 24, 2012, 10:29:54 am
Quote
The above activity seems quite redundant in my use case.

I take it back.

Have looked some more at the code I do like the parent activity since this is what I am used to seeing in CiviMail.  One activity which represents the process of sending the mailing. It shows who sent it, and everyone it was sent to.

The other activities are what handled in CiviMail using all the civicrm_mailing_event tables, right? I prefer the CiviMail interface for displaying this stuff to the user.  Do you think that we can handle SMS delivery display etc. more like CiviMail does?
« Last Edit: October 24, 2012, 10:39:27 am by Michael McAndrew »
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviSMS »
  • CiviSMS should only record one activity for an outbound SMS

This forum was archived on 2017-11-26.