Here is a working example

<cfschedule action="UPDATE"
            task="Task_Name"
            operation="HTTPRequest"
            startdate="#start_date#"
            starttime="#start_time#"
            enddate="#end_date#"
            interval="Daily"
            resolveurl="No"
            publish="No"
                url="#s_URL#" 
                port="80" > 

Qasim

-----Original Message-----
From: James Johnson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 3:11 PM
To: CF-Talk
Subject: Cfschedule syntax


Hello,

I'm having a problem getting the syntax for cfschedule correct.

I want to run a CF page which will query a db and run a batch of emails.
That is done. What I'm having a problem with is the actual <cfschedule>
tag.

1) Does the Task need to be setup before hand in CF Admin?
2) If it doesn't, I'm getting confused on the ACTION attributes
RUN/UPDATE.

The emailing page is called RR_email_results.cfm

<cfset stDate = #DateFormat(Now(),"M/DD/YYY")#>
<cfset stTime = #TimeFormat(Now(),"h:mm tt")#>
<cfset stTime = #DateAdd('N',10,Now())#>
<cfset stTime = #TimeFormat(newTime,"h:mm tt")#>

<cfschedule 
        action="update" 
        startdate=#stDate# 
        starttime=#stTime# 
        task="Test Schedule" 
        url="http://127.0.0.1/oryanresellerrecruit/RR_email_results.cfm";
        resolveurl="yes"
>

The error message I'm getting is:
Attribute validation error for tag CFSCHEDULE.  
When the value of the ACTION attribute is "UPDATE", the tag requires the
attribute(s): INTERVAL,OPERATION.  

Does anyone have some sample code, they'd like to share? Thanks, James


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to