I want to replicate the scenario
workflow scenario programmatically.
I have a simple workflow with 2 states
Published (or Approved). Users with the right permission can edit, save and even submit the changes Or other users can review and submit from their workbox. This works fine when the user edits the changes in the content editor.
But I have a code to update some of the items programmatically and I am using switch user to run that piece of code under some specific user context. Now the problem is, those updates are not going through
I am able to update the
workflow details (
workflow id, state id) to the item's corresponding field ("
__Workflow state") but the problem is those items don't appear in Workbox. The goal is to update the items programmatically (including creating a new version), but someone has to review and submit to get the updated items published.
Please let me know if anyone got input.