Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Publishing changed records via a scheduled task


Go to End


1459 Views

Avatar
pingu

Community Member, 75 Posts

24 November 2009 at 12:32am

Hi guys,

I've got a scheduled task running at the end of each night that goes through the products on a website, compares the price field with that of an uploaded CSV and updates the price if there's a difference.

This is all working fine, but the problem is that when a record has been updated, it's not automatically published. What's the best way to automatically publish the record?

I'm running the scheduled task using lynx as it's the only text-browser supported by the host.

Any suggests would be greatly appreciated.