Developer forum

Forum » CMS - Standard features » Scheduled Task to execute a URL

Scheduled Task to execute a URL

Niels Christian Aaes
Niels Christian Aaes
Reply

Hi again,

I created a page with form for editor to send an e-mail with an automatic submit.

I added the page URL into Scheduled Task as this URL: https://mypage.dk/Default.aspx?ID=123

I would like it to automatic submit the form on the page. But nothing happens and there are no errors.

Can I do it by pointing to a normal page and without making any custom setup..

NC


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I do not understand what you are trying to do.

You cannot post a form using a schedule task - that will issue a GET request.

 
Niels Christian Aaes
Niels Christian Aaes
Reply

I'll try to explain better =)

I have a list of users with phonenumbers that I need to sendt to ex. 12345678.KODEXXXX@cpsms.dk.
CPSMS will then send sms to the phonenumbers they receive.
I use Forms for Editors with a datalist inside to send this mail to cpsms.dk
The page I have created works (send SMS) then I access the page.

I wanna use Scheduled Tasks to goto the URL every day. But nothing happens and no errors.

If Scheduled Tasks can't load the page = the URL. Is there another way to create a setup that can send e-mails every day (and not using the e-mail field in users.)?
I did think of Mailmarketing, but this only uses the e-mail field to send to.

The solution is DW9 and not custom.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Niels,
This looks more like a custom RecepientProvider for the Marketing module.

I cannot think of any out-of-the-box solution for what you are trying to do.

Maybe you can create "fake" users (using the custom email) for this purpose (using SQL or data integration), add these users to a dedicated group and set up a marketing campaign to send emails to all users in this group.
And maybe you can set up a cleanup of the usergroup.

Adrian

 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Or maybe create a custom Scheduled Task that fetches the data and submits it to the third party?

Imar

 
Niels Christian Aaes
Niels Christian Aaes
Reply

Hi Adrian and Imar,

thank you for your suggestions.

I'll try the mail-marketing approach by creating fake users etc.

NC

 

You must be logged in to post in the forum