MennaKearns
Crownpeak (Retired)

How to have content expire automatically

Question

How can I expire content automatically?

Answer

There are three options to automatically expire content:

1. Workflow scheduled transition

rtaImage.jpg

2. Manual schedule

rtaImage (1).jpg

This would require that the workflow be updated with a Scheduled Transition from the Live state to the Retired state:

rtaImage (2).jpg

3. Schedule via code using an input field for expiry, i.e.:

asset.SetSchedule("Retire Date",lastEndDate.AddDays(1));

Code can be placed in either the post_input.aspx or post_save.aspx and requires a named Scheduled Transition mentioned in #2.

Labels (1)

Can't find what you are looking for?

Find Answers

Search our DXM Forum to find answers to questions asked by other DXM users.

Ask a Question

No luck? Ask a question. Our Product and Support teams are monitoring the Forum and typically respond within 48 hours.

Ask a Question