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

**URL:** <https://forums.pega.com/t/get-data-of-a-new-work-object-from-an-existing-work-object/2313>\
**Category:** General\
**Tags:** other-industry, 8-3-2, system-architect, case-management\
**Created:** [March 3, 2022, 4:06pm UTC](https://forums.pega.com/t/get-data-of-a-new-work-object-from-an-existing-work-object/2313 "2022-03-03T16:06:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ypereira](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/ypereira/32/16032_2.png) [@ypereira](https://forums.pega.com/u/ypereira)\
**Post date:** [March 3, 2022, 4:06pm UTC](https://forums.pega.com/t/get-data-of-a-new-work-object-from-an-existing-work-object/2313/1 "2022-03-03T16:06:12Z")

</div>

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.

 ![Configuration of the button.png](https://pega1.discourse-cdn.com/pega/original/2X/5/5ec7a6d8265e89ad73cdf0929cd8fe32becafc3f.png)

---

<div class="post-metadata">

**Author:** ![Bhavya](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhavya/32/13873_2.png) [@Bhavya](https://forums.pega.com/u/Bhavya)\
**Post date:** [March 3, 2022, 10:11pm UTC](https://forums.pega.com/t/get-data-of-a-new-work-object-from-an-existing-work-object/2313/2 "2022-03-03T22:11:46Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![ypereira](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/ypereira/32/16032_2.png) [@ypereira](https://forums.pega.com/u/ypereira)\
**Post date:** [March 4, 2022, 2:31am UTC](https://forums.pega.com/t/get-data-of-a-new-work-object-from-an-existing-work-object/2313/3 "2022-03-04T02:31:00Z")

</div>

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