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

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

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

Reply via email to