How to make a card like the one in the screenshot below? Thanks.
How to make a card like the one in the screenshot below? Thanks.
Did you find a suitable solution? I'm also interested in making such a visual.
Thank you for your answer. But what I need is the out of the box card. This web rosource card appears with borders.
You can create a HTML file as Web Resource. In the HTML file, send Web API request to get the count of entity. Then add this web resource to your dashboards.
Step:
1. Create a dashboard in your App.
2. Add a web resource to your dashboard, and save it.
3. Result:
Here is my HTML code, you can have a try:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body onload="getAccountNum()">
<div>
<p>Account</p>
<div>
<div style="margin:10px 20px">
<div id="count" style="width:200px;height:50px;text-align:center;font-size:36px;">0</div>
<div>
</body>
<script type="text/javascript">
function getAccountNum(){
var uri = "https://yourorgname.crm[x].dynamics.com/api/data/v9.0/accounts";
var request = new XMLHttpRequest();
request.open("get", uri , true);
request.setRequestHeader("OData-MaxVersion", "4.0");
request.setRequestHeader("OData-Version", "4.0");
request.setRequestHeader("Accept", "application/json");
request.setRequestHeader("Content-Type", "application/json; charset=utf-8");
request.onreadystatechange = function () {
if (request.readyState === 4) {
var result = JSON.parse(request.responseText);
document.getElementById("count").innerHTML = result .value.length;
}
}
request.send();
}
</script>
</html>
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156