I have requirement like - On the resolve-completed case there will be “Reopen” button and click on the button, new case ID would be created with some data from resolved case (not to open same case as reopen action works).
I have achieved till creation of new Work ID, but issue here is I have to open assignment on click of reopen and Assignment key is not getting generated for new WO,
There is no - newAssign Page generating and there is no assignment in “Assign-WorkList” class.
Could you please describe how exactly you are creating the new WO on click of reopen?
Have you created the workpage using createWorkPage activity before calling addwork and then doing commitWithErrorHandling to commit the changes?
When you use AddWork activity you need to pass the value of the parameters for this activity and one of them is pyNextAssignment which should be true so that it will look for the next assignment.
@VikashK99 Please see steps above, and suggest what to pass in Assignment parameters. FYI WO is created and opening in review mode, when I use open assignment it is not working as assignment is not created either