Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8773757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:23:05+00:00 2026-06-13T18:23:05+00:00

I am having trouble with a clock based trigger I am trying to create.

  • 0

I am having trouble with a clock based trigger I am trying to create. This is for google apps script. This script is supposed to call a function that will email information at 5 am from a spreadsheet. I know the function works because I had used it with the 5 am to 6 am built in trigger, but they want it at exactly 5 am and not anytime in that hour range. Here is my code:

var SOD_Briefing_Trigger = ScriptApp.newTrigger("sendBriefingByEmail")
.timeBased().
atHour(5)
.create();

Everytime I try to run or debug it I get an error message of:

Needs a positive frequency of recurrence

Sorry if this seems like a newb question. I spent a few days searching here and google generally for a similar issue. I could not find anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:23:07+00:00Added an answer on June 13, 2026 at 6:23 pm

    That error message is a bit cryptic. If you just say “atHour”, the system knows the “time” but not the “frequency”.

    This following should work.

    var SOD_Briefing_Trigger = ScriptApp.newTrigger("sendBriefingByEmail")
    .timeBased()
    .atHour(5)
    .everyDays(1)
    .create();
    

    Note the “everyDays” call. That means run it every X day(s) -every day in this call. You can change it to other frequencies based on the calls documented here. Some other examples – “atDate” (if you just want it run today or tomrorow) and “onWeekDay” (if you want it run every Monday for eg.).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build some iOS apps while learning and am having some trouble
I am having so much trouble with this site! http://pearsonlyle.uwpistol.net/galleries/susie-theodorou/editorial/ The navigation that is
I'm having trouble making this work: $(function() { $(.button).click(function() { var newentry = $(input#entry).val();
Having trouble with each function... Will try to explain by example... In my code,
Having trouble framing this assertion in Rspec for my rails app. A User has
Having trouble with proper regex for RewriteCond RewriteCond %{REQUEST_URI} !^/foo/ Works as expected, that
I'm having a bit trouble here with creating a map for a browser based
Let's say I have a PHP script that does this: $timeNow = 1349852400000; //
I am having trouble getting a working example that reads metadata from a WebVTT
I'm having some trouble with an iPhone app that I'm making. I have two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.