Legacy Dev Forum Posts

 View Only

Sign Up

Open a Interactions from a Custom App in the same iframe

  • 1.  Open a Interactions from a Custom App in the same iframe

    Posted 06-05-2025 18:49

    Javier_Trujillo | 2020-08-26 19:39:25 UTC | #1

    We are building a Custom App for one of our clients that will be use in the PureCloud Windows Client, in this app the client will see all the emails On Queue; PureCloud doesn't show the email body of the new and un-answered emails. Our client wants to jump from our app directly to the integration to get a lot more information.

    We add the URL for the integrations in the href parameter of a <a> anchor like this:

    <a href="https://apps.mypurecloud.com/directory/#/engage/admin/interactions/cb6aaf88-a196-4bdf-a725-7354d03e7431" target="_blank" class="nav-link">Link BLANK</a>

    *and *

    <a href="https://apps.mypurecloud.com/directory/#/engage/admin/interactions/cb6aaf88-a196-4bdf-a725-7354d03e7431" target="_self" class="nav-link">Link SELF</a>

    When we use the option target="blank" it creates a new tab in the browser. If we use the option target="self" the system open the integrations but duplicates the UI like this

    We already create a ticket but the answer was use the _self option and the iframe sandbox options allow-scripts,allow-same-origin,allow-forms,allow-modals,allow-presentation,allow-popups

    Any one knows a way to solve this issue ?

    Thanks


    Javier_Trujillo | 2020-08-26 19:41:53 UTC | #2

    The webpage add the anchor examples a links, let me add the html code:

    <a href="https://apps.mypurecloud.com/directory/#/engage/admin/interactions/cb6aaf88-a196-4bdf-a725-7354d03e7431" target="_blank" class="nav-link">Link BLANK</a>

    *and *

    <a href="https://apps.mypurecloud.com/directory/#/engage/admin/interactions/cb6aaf88-a196-4bdf-a725-7354d03e7431" target="_self" class="nav-link">Link SELF</a>

    Also, the app is build using ASP .NET Framework MVC. Thanks


    anon28885283 | 2020-08-27 03:34:47 UTC | #3

    Hi Javier, I'm not sure how you're building these URLs but the best way to link your app to an interaction is using the Client App SDK.

    There is a method, that when given the conversation id will take you to the interaction details. ClientApp -> ConversationsApi

    myClientApp.conversations.showInteractionDetails('--conversation-id-here--');


    Javier_Trujillo | 2020-09-03 20:35:32 UTC | #4

    I'm trying to test the example code inside my own app but it doesn't go anywhere, It's any example code in GitHub or between all the example code in Purecloud ?


    anon28885283 | 2020-09-04 04:47:35 UTC | #5

    Hi Javier,

    Are you getting any console errors? Did you replace the example code with one of your org's own conversation id?


    Javier_Trujillo | 2020-09-04 04:49:23 UTC | #6

    Hi ! Now is working thank to your suggestion, thank you so much !

    Is working perfect !


    system | 2020-10-05 04:49:28 UTC | #7

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 8669