Skip to content

Commit 16278cd

Browse files
authored
Create README.md
1 parent 02b34a8 commit 16278cd

File tree

1 file changed

+9
-0
lines changed
  • Client-Side Components/UI Actions/Publish a Retired Knowledge Article again

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**UI Action**:
2+
Publish a Retired Knowledge Article again after it is already retired.
3+
4+
**How it works:**
5+
1. The code finds existing articles in the Knowledge base that share the same Article ID but are not the current article and are 'retired'.
6+
2. It updates the workflow state of these found articles to 'outdated'.
7+
3. For the current article, it sets the workflow_state to 'pubblished', records the current date and updates the 'published' field with the date.
8+
4. It also removes the pre-existing 'retired' date from the 'retired' field.
9+
5. It redirects the user to the updated current record.

0 commit comments

Comments
 (0)