Announcement

Collapse
No announcement yet.

Script for getting reminders for Next X Days

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script for getting reminders for Next X Days

    Playing around with the scripting for BLReminders and trying to grab all reminders for the next 15 days. Can grab reminders for specific category using the following, but don't know how to modify to grab ALL categories.


    For Each remind in hs.PluginFunction("BLReminders", "", "GetRemindersForNextXDays", {15,"Household"})
    hs.writelog("Info", remind.Name)
    Next

    Tried several methods without luck. Help file says if I don't specify it will default to all, but have not been successful in that as it returns an error message. Help would be appreciated.
    Regards, Bob

    #2
    I will have to check the call and see. It has been a while since I looked at this.
    I am sure a call can be added if it does not do what you need
    I will confirm
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Thanks. Just so you are aware, I'm planning on writing a script that will populate a series of devices with "Days Till reminders" - be it a Holiday, Vacation, Birthday, etc. (excluding weekly reminders) that I will then use to display on my BetaBright sign (also using your plugin).
      Regards, Bob

      Comment


        #4
        Bob,

        Any luck with this request or workaround that might be possible?
        Regards, Bob

        Comment


          #5
          Log a help desk ticket on my site, then...
          Can you turn on debug logging in the plugin, then run that call, then turn off debug logging and attach the log zipped
          Cheers,
          Bob
          Web site | Help Desk | Feature Requests | Message Board

          Comment


            #6
            Try this:

            Code:
            For Each remind As Object in hs.PluginFunction("BLReminders", "", "GetRemindersForNextXDays", new Object(){15,"Household"})
                hs.writelog("Info", remind.Name)
            Next
            Cheers,
            Bob
            Web site | Help Desk | Feature Requests | Message Board

            Comment


              #7
              Yes, this works but I'm looking to get all reminders for x days without a filter applied. How would I return all reminders?
              Regards, Bob

              Comment


                #8
                Try this:

                Code:
                For Each remind As Object in hs.PluginFunction("BLReminders", "", "GetRemindersForNextXDays", new Object(){15,"ALL"})
                    hs.writelog("Info", remind.Name)
                Next
                Cheers,
                Bob
                Web site | Help Desk | Feature Requests | Message Board

                Comment


                  #9
                  You the man! It works and much thanks
                  Regards, Bob

                  Comment


                    #10
                    No problem
                    Cheers,
                    Bob
                    Web site | Help Desk | Feature Requests | Message Board

                    Comment

                    Working...
                    X