Assignment Key not generating when new Work object is created using addwork activity in Pega 8.7

Hi All,

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.

It is pega v 8.7, Looking for help on this

Hi @Pratik1993

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

@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

@VikashK99 I tried by setting parameter to true, still assignment not generated

@Pratik1993 Issue got resolved using requester level editable data pages