web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Unified Service Desk - Opening a CRM HTML web-resource in a new session tab

(1) ShareShare
ReportReport
Posted on by 790

Hi Team,

We are using Unified service Desk  4.1.1.1319 integrated in to  Dynami365 V9.0 Online .We are calling HTML Webresource on button clicks on Case entity form.

Case 1: On Button Click another window is Opening but the window should be          opened in newtab.

Case 2:  we are calling secured URL in html web page.

Case 3: After calling HTML Web Resource  into USD we are unable to start session for secured URL

Please find the below html page  source code.

I am unable to attach the  html page.

Could please help me for the issue.

==========================HTML Source Code======================

<html><head><meta></head><body style="overflow-wrap: break-word;" onfocusout="parent.setEmailRange();">
<title>Open Astute Widget</title>
<script src="../../clientglobalcontext.js.aspx" type="text/javascript"></script>
<script src="../../gcct_jquery-2.2.1.min.js" type="text/javascript"></script>
<!-- <script src="">code.jquery.com/.../script> -->
<!-- <script src="">ajax.googleapis.com/.../jquery.min.js"> -->
<script src="../../gcct_jquery3331"></script>
<script src="../Scripts/GCCTAstuteWidget.js" type="text/javascript"></script>
<style>
.button {
background-color: #3b8ec2; /* Blue */
background-image: linear-gradient(to right, #032d48 0%, #0a6895 51%, #419ad3 100%);
border: none;
color: white;
padding: 12px 22px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 10px;
border-radius: 5px;
}

.dropdown {
background-color: #3b8ec2;
}

.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 1;
}

.loading {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: fixed;
display: block;
opacity: 0.7;
background-color: #C0C0C0;
z-index: 99;
text-align: center;
color: #808080;
}

.loading-image {
position: absolute;
top: 250px;
left: 290px;
z-index: 100;
width: 25px;
height: 25px;
}

.icon-button {
background: url('/WebResources/msdyusd_AssociateArticle_16_HCWhite') left center no-repeat,linear-gradient(to right, #032d48 0%, #0a6895 51%, #419ad3 100%);
/*background-image: linear-gradient(to right, #314755 0%, #26a0da 51%, #314755 100%);*/
padding-left: 15px;
background-color: #3b8ec2;
color: white;
padding: 12px 22px;
display: inline-block;
font-size: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
* {
box-sizing: border-box;
}

#myInput {
background-image: url('/css/searchicon.png');
background-position: 10px 10px;
background-repeat: no-repeat;
width: 85%;
font-size: 16px;
padding: 12px 20px 12px 40px;
border: 1px solid #ddd;
margin-bottom: 12px;
}

#myTable {
border-collapse: collapse;
width: 100%;
border: 1px solid #ddd;
font-size: 18px;
}

#myTable th, #myTable td {
text-align: left;
padding: 12px;
}

#myTable tr {
border-bottom: 1px solid #ddd;
}

#myTable tr.header, #myTable tr:hover {
background-color: #f1f1f1;
}
iframe {
overflow: scroll;
width: 1349px;
height: 100%;
border: 1px solid black;
}
</style>

<meta>
<meta>
<meta>
<meta>
<meta>
<meta>
<meta>
<meta>
<meta>
<meta>
<meta charset="utf-8">

<div align="right">

<!-- <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for Article.." title="Knowledge Base Articles"> -->
<!-- <button class="icon-button" onclick="linkArticle()">Search</button> -->


</div>
<br>
<div style="width: 100%; height: 100%;">
<!-- <iframe id="astutewidget_frame" src="about:blank" style="width: 100%; height: 100%;"></iframe> -->
<!-- <div class="loading" id="loading" style="display: none;"> -->
<!-- <img title="Creating Knowledge Article" class="loading-image" id="loading-image" alt="Creating Knowledge Article" src="../../adx_select2/select2_spinner.gif"> -->
<!-- </div> -->

<script>
window.onload = function ()
{
//debugger; Session start
startSession();
}
function startSession()
{
debugger;
var sessionStatus = {
'session': 'start'
};
var sessionData = JSON.stringify(sessionStatus);
console.log(sessionData);
postMessageToWidget(sessionData);
}
function postMessageToWidget(data) {
try {
debugger;
var widgetendpointurl="">use-va2.astuteknowledge.com/.../";
var iframe = document.getElementById("astutewidget_frame").contentWindow;
iframe.postMessage(data, widgetendpointurl);
}
catch (err) {
displayMessage(err.message);
}
}

</script>

<Div>
<iframe id ="astutewidget_frame" src="">use-va2.astuteknowledge.com/.../" class="iframe" title="Astute Knowledge" scrolling="auto"></iframe>
</DIV>

</body></html>

Regards,

Ajaykumar challa

+91-9113813508

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans