I have enabled 'Retire' button on knowledge form when Workflow State = 'Review' but its not working.

MayurGavhane
Tera Contributor

Hi All,

I have enabled 'Retire' button on knowledge form when state or workflow = 'Review' and it should retire that article.

but when workflow = 'Published' then its working perfectly.

Scenario - Admin wants to retire article when it is assigned for Approval instead of reject and then retire.  

Let me know if you need more info.

 

MayurGavhane_0-1692613661540.png

@BharathChintala 

@Ankur Bawiskar 

@Ravi Chandra_K 

1 ACCEPTED SOLUTION

BharathChintala
Mega Sage

@MayurGavhane 

the OOB script is complicated as it is calling script include to check it can retire or not.

 

BharathChintala_0-1692622772612.pngBharathChintala_1-1692622819356.pngBharathChintala_2-1692622866281.png

I don't recommend to touch any of these OOB script. 

 

Instead let that retire be same OOB where displays only on Published. Then create new Retire UI action and give condition to show only on Review and write your own code to retire it.

 

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

View solution in original post

2 REPLIES 2

BharathChintala
Mega Sage

@MayurGavhane 

the OOB script is complicated as it is calling script include to check it can retire or not.

 

BharathChintala_0-1692622772612.pngBharathChintala_1-1692622819356.pngBharathChintala_2-1692622866281.png

I don't recommend to touch any of these OOB script. 

 

Instead let that retire be same OOB where displays only on Published. Then create new Retire UI action and give condition to show only on Review and write your own code to retire it.

 

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

Hello @BharathChintala ,

As you suggested I have created new UI action and called "retire workflow" and when I click to "Retire" the workflow state changes to from 'Review' to  'Pending Retirement' and waiting for approval.

But approvals that were already created for review and again create for pending retirement, means double same approval and when I approve the most recent approval, sometimes it gets retired or moves to the workflow state for review.

MayurGavhane_0-1693818700001.pngMayurGavhane_1-1693818876299.png

let me know if you need more explanation.