# Imbed Case Manager Delegated Rules inside custom Admin portal

**URL:** <https://forums.pega.com/t/imbed-case-manager-delegated-rules-inside-custom-admin-portal/1988>\
**Category:** User Experience\
**Tags:** 8-4, user-experience, senior-system-architect, case-management\
**Created:** [December 13, 2021, 5:52pm UTC](https://forums.pega.com/t/imbed-case-manager-delegated-rules-inside-custom-admin-portal/1988 "2021-12-13T17:52:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrianC070](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@BrianC070](https://forums.pega.com/u/BrianC070)\
**Post date:** [December 13, 2021, 5:52pm UTC](https://forums.pega.com/t/imbed-case-manager-delegated-rules-inside-custom-admin-portal/1988/1 "2021-12-13T17:52:29Z")

</div>

Hi,

I am looking to imbed the Case Manager Configure portal to our custom Admin Portal. Is there any way to imbed an internal final rule into my Section/UI.

Would also be ok with delegating the “MyDelegatedRules” section as well, but that does not seem to populate my current delegated rules.

 ![2021-12-13_12-56-47.png](https://pega1.discourse-cdn.com/pega/original/2X/0/048e3fb864d68030a5390cc59e6a6b32957a7220.png)

---

<div class="post-metadata">

**Author:** ![SaurabhG7134](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/saurabhg7134/32/17184_2.png) [@SaurabhG7134](https://forums.pega.com/u/SaurabhG7134)\
**Post date:** [December 14, 2021, 7:20am UTC](https://forums.pega.com/t/imbed-case-manager-delegated-rules-inside-custom-admin-portal/1988/2 "2021-12-14T07:20:35Z")

</div>

Hi @BrianC070, from you portal navigation’s menu item you can call the Harness: “pzDelegatedRules”.

You can use the “Run Script” action for the Click event and then call this function “pega.desktop.showHarness” to launch this OOTB harness. Please check the screenshot attached for reference.

Hope this helps!!

Thanks,

Saurabh.

 ![Launch_DelegationHarness.PNG](https://pega1.discourse-cdn.com/pega/original/2X/0/083b312f3c07b40959f0aa82397b5eafd343ff43.png)

---

<div class="post-metadata">

**Author:** ![BrianC070](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@BrianC070](https://forums.pega.com/u/BrianC070)\
**Post date:** [December 14, 2021, 9:19pm UTC](https://forums.pega.com/t/imbed-case-manager-delegated-rules-inside-custom-admin-portal/1988/3 "2021-12-14T21:19:59Z")

</div>

@SaurabhG7134

Hi SaurabhG7134

I was able to get a harness to pop up using my navigation menu item by copying pyCaseManagerLinks Configuration tab in my own work class. The only issue is that it pops to a new window and not the harness to the right of it. What settings would I need to change in order for the context to pop up in my current harness?

Thanks,

Brian

 ![2021-12-14_16-19-30_0.png](https://pega1.discourse-cdn.com/pega/original/2X/d/dc53ce3f7f8d0b046a05e37eb701b8a059e5f51c.png)

---

<div class="post-metadata">

**Author:** ![SaurabhG7134](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/saurabhg7134/32/17184_2.png) [@SaurabhG7134](https://forums.pega.com/u/SaurabhG7134)\
**Post date:** [December 15, 2021, 6:21am UTC](https://forums.pega.com/t/imbed-case-manager-delegated-rules-inside-custom-admin-portal/1988/4 "2021-12-15T06:21:29Z")

</div>

Hi @BrianC070, in that case I would suggest using the Action directly as “Harness” and the Target dropdown would be “New Document”. I have added another screenshot, please check it and let me know if it solves your issue.

Thanks,

Saurabh.

 ![Launch_Harness.PNG](https://pega1.discourse-cdn.com/pega/original/2X/5/5ef67be7ce1dd2e6749ac24b22bf9b64d5027509.png)

---

<div class="post-metadata">

**Author:** ![BrianC070](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@BrianC070](https://forums.pega.com/u/BrianC070)\
**Post date:** [December 15, 2021, 2:47pm UTC](https://forums.pega.com/t/imbed-case-manager-delegated-rules-inside-custom-admin-portal/1988/5 "2021-12-15T14:47:34Z")

</div>

@SaurabhG7134

I have seemed to get the navigation menu working, just needed to change the class of the harness/navigation to match.

Thanks,

Brian
