# Send an email with a link to the case displayed in CosmosUI

**URL:** <https://forums.pega.com/t/send-an-email-with-a-link-to-the-case-displayed-in-cosmosui/3340>\
**Category:** User Experience\
**Tags:** email, theme-cosmos, communications-and-media, 8-6-5, user-experience, case-management, system-architect\
**Created:** [October 11, 2022, 2:06am UTC](https://forums.pega.com/t/send-an-email-with-a-link-to-the-case-displayed-in-cosmosui/3340 "2022-10-11T02:06:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HiroakiS6393](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@HiroakiS6393](https://forums.pega.com/u/HiroakiS6393)\
**Post date:** [October 11, 2022, 2:06am UTC](https://forums.pega.com/t/send-an-email-with-a-link-to-the-case-displayed-in-cosmosui/3340/1 "2022-10-11T02:06:14Z")

</div>

I use Pega’s “send email” shape.  
I can set “link to current case” in message editing, but accessing the link set here breaks the CosmosUI layout.

Could you tell me how to set the link to access without breaking the CosmosUI layout?

---

<div class="post-metadata">

**Author:** ![Biswajitp9096](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/biswajitp9096/32/263_2.png) [@Biswajitp9096](https://forums.pega.com/u/Biswajitp9096)\
**Post date:** [October 11, 2022, 8:52am UTC](https://forums.pega.com/t/send-an-email-with-a-link-to-the-case-displayed-in-cosmosui/3340/2 "2022-10-11T08:52:30Z")

</div>

Hi @HiroakiS6393,

Could you please share some more details/ screenshots about the issue?

Regards,

Biswajit Parija

---

<div class="post-metadata">

**Author:** ![HiroakiS6393](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@HiroakiS6393](https://forums.pega.com/u/HiroakiS6393)\
**Post date:** [October 14, 2022, 11:13am UTC](https://forums.pega.com/t/send-an-email-with-a-link-to-the-case-displayed-in-cosmosui/3340/3 "2022-10-14T11:13:57Z")

</div>

@Biswajitp9096

Thank you for reply!

I set the Pega case link over the email along the following steps:

1. I used the email shape in my flow rule.
2. I clicked “compose” botton under Message content in email shape.
3. I set the link botton in compose message setting.
4. I checked the “Link to current case”.

When I followed the link in the email, I found the ConsmosUI display was broken.  
I assume that the URL contains Consmos UI display settings (ex.Skin rule).  
But that information was not included in the link created by the email shape.

 ![EmailCapture1.png](https://pega1.discourse-cdn.com/pega/original/2X/4/4bd7ee9dfe722d45955fac8c7a5f9800068e948d.png)

 ![EmailCapture2.png](https://pega1.discourse-cdn.com/pega/original/2X/8/83462e919d56ccc87ab9b5dcfc352de1ea837fad.png)

 ![EmailCapture3.png](https://pega1.discourse-cdn.com/pega/original/2X/c/ccedbdec22c1a779c377db68c0d84c504b5f365c.png)

---

<div class="post-metadata">

**Author:** ![HiroakiS6393](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@HiroakiS6393](https://forums.pega.com/u/HiroakiS6393)\
**Post date:** [November 22, 2022, 9:36am UTC](https://forums.pega.com/t/send-an-email-with-a-link-to-the-case-displayed-in-cosmosui/3340/4 "2022-11-22T09:36:01Z")

</div>

@HiroakiS6393

The customer agreed with an alternative method of sending the Pega login screen URL by email, and the issue was resolved.

---

<div class="post-metadata">

**Author:** ![ANURAGS8914](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anurags8914/32/9902_2.png) [@ANURAGS8914](https://forums.pega.com/u/ANURAGS8914)\
**Post date:** [September 28, 2023, 8:58am UTC](https://forums.pega.com/t/send-an-email-with-a-link-to-the-case-displayed-in-cosmosui/3340/5 "2023-09-28T08:58:21Z")

</div>

@HiroakiS6393

If you want to dynamically send application URL along with an email you can follow the steps below.

1. create a **dynamic system settings** rule.
2. Create a **Correspondence fragment** rule of type Email.
3. Paste the below code.
  1. \<%  
String AppLinkURL = String.valueOf(pega\_rules\_utilities.getDataSystemSetting(“RulesetName”,“DSSName”));  
%\>  
\<%=AppLinkURL%\>

4. Refer this Correspondence fragment rule in **correspondence** rule under type of **Rule-Corr-Fragment**.
5. Save.
