> Forums > Active Social > Themes and Templates > Add Notification, is there API?
Last Post 17 Jun 2011 05:41 PM by mridul2100. 6 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
goldenrate
Customers
goldenrate
Post Count:81

--
26 Aug 2010 02:49 PM
    Hey,

    I need to add notifications from an external module I'm developing. I know I can add notifications directly to the database (activesocial_Messages and activesocial_Messages_User) but I'm looking for an easier way using API maybe.

    If database is the only way then I'd love to know where I can get the values for the following fields in activesocial_Messages: Priority, MessageCategoryId, MessageType, and Param.

    Thanks,
    David
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7666

    --
    26 Aug 2010 04:33 PM
    There are public methods in Active.Modules.Social.API.Messaging. You would have to access them with a reference to Active.Modules.Social.dll. We don't have those exposed as a service yet.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Jason Peterson
    Customers
    Jason Peterson
    Post Count:523

    --
    05 Oct 2010 03:15 PM
    what is the db field to make a notification appear/increment the account in the welcome center, I cannot get the notification we are sending via db to make the popup appear, or increment the alerts/notification count?

    Thanks,
    Jason
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7666

    --
    05 Oct 2010 03:19 PM
    There isn't an api for Notifications, only Messages. There also isn't a database field that stores the count. The counts are calculated each time they are needed. There are multiple tables and settings involved when creating messages. However, the only supported method right now is using the API for Messaging.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Jason Peterson
    Customers
    Jason Peterson
    Post Count:523

    --
    05 Oct 2010 04:22 PM
    Will, thank you, yes I looked at the db and I understand there is no field representing the # of notifications etc, and that it is calculated based on various fields.  Unfortunately, using messages in this instance for us is inappropriate.  I appreciate and understand notifications API is not currently supported.  Much of our custom code is tied into and utilizing AS/AF and we will be sending notifications for at least several different events.  We will somehow need to gain the ability to send notifications, however I accept if you cannot currently report the fields we should take a look at for this.

    Thanks,
    Jason
    Jason Peterson
    Customers
    Jason Peterson
    Post Count:523

    --
    27 Nov 2010 12:50 AM
    solved, issue was simple, host user cannot be sender of a notification, changed user and works fine
    mridul2100
    Registered Users
    mridul2100
    Post Count:2

    --
    17 Jun 2011 05:41 PM
    yes i got two methods - 1.sendprivatemessage 2.sendsitemessage

    i dont know what value i give to recipients parameter.i tried using giving user name but not working.and templatename parameter! what to write.please help with coding......asap
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Add Notification, is there API?
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy