Get data of a new work object from an existing work object

I have a work object of the class A (A1) with a button that has the ‘Create Work’ action to create a case of the class B (B1). I need to retrieve the new ID of case B1 to set it in a property of the case A1. The problem is that when I do the set in the case A1, case B1 is not yet created (in other thread) and the field is empty. Any suggestion?

Attached image of the configuration.

@ypereira HI

You can try to create case from an activity and then set the property.

Basic steps:

  1. Create case using pega ootb activity

  2. Set new case id to a property in existing case using Property set.

Regards

Bhavya

@Bhavya Thanks, I have created an activity in which I call the “pxCreateTopCase” and then the set to the property.