A Delete Page Workflow | Community
Skip to main content
October 16, 2015
Solved

A Delete Page Workflow

  • October 16, 2015
  • 1 reply
  • 810 views

I'm writing a workflow to delete a page. In our project user requires that Delete page action need approval. Initiator run the workflow on certain page (workflow's paylaod). Once approver approve, the page (i.e. paylaod) will be delete. 

Here is the problem: delete action is written in the end of workflow's ecma: pageManager["delete"](payloadresource, false);

Once this code is executed, the workflow status will change to "ABORTED" as it's payload is deleted. I expect workflow status will be COMPLETED. 

Do you have any suggestions?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

instead of ecma, try using deletenode process which is OOTB

1 reply

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
October 16, 2015

instead of ecma, try using deletenode process which is OOTB