Category: Other

How to automatically refresh your Dynamics 365 Dashboard in UCI

Procedure:

1. Create an html web resource and add the following script in it:

<html><head>
     <title></title>
     <script type="text/javascript">

         // add visual timer just because we can
         var d = new Date();
         document.write(d.toLocaleTimeString());

         // refresh parent (dashboard) every 30 seconds
         // (timeout is in milliseconds)
         setTimeout("window.parent.document.getElementById('RefreshDashboard').click();", 30 * 1000);
     </script>
   <meta><meta><meta><meta><meta></head>
   <body>
</body></html>

2. Add the html web resource to a dashboard.

3. Click on “Edit Component” and make sure the web resource’s “Visible By Default” property is unchecked.

Explanation:

On the dashboard, there is a button called “Refresh Dashboard”. The ID of this button is RefreshDashboard. The script above clicks this button every 30 seconds. You can change the button to put in another value for seconds.

Filed under: Other

Mimic DNN theme to embed pages into Dynamics CRM

This is a theme you can install on DotNetNuke Community Edition to create pages which are embeddable in Dynamics CRM as web resources. There are a lot of open source tools available for DNN which can allow you to do quick web app building. Some of my favorite tools include the SqlViewPro and InjectAnything from RedTempo. Mix them all together and you got a great presentation tool you can use in Dynamics CRM Dashboards. Especially since CRM has Xrm.Page.context.getUserId() and DNN has the [User:Username] token.

It’s not a replacement for sophisticated BI tools but gets me to do some interesting stuff. So here it is.

Mimic – (Zip File)

Filed under: CSS, JS, Other, SharePoint

How to link directly to a Dynamics CRM 2016 view or record.

You can link directly to a Dynamics CRM view or record by formatting your URL like this:

https://<domain>/<org>/main.aspx?etn=account&pagetype=entitylist&viewid=%7bb210XXX63-BXCA-X731-81F5-93XXXXXX8301%7d&cmdbar=true&web=true&navbar=on

These are the parameters at play here:

  1. https://<domain>/<org>/main.aspx
  2. ?etn=account (entity)
  3. &pagetype=entitylist (or entityrecord)
  4. &viewid=%7b210XXX63-BXCA-X731-81F5-93XXXXXX8301%7d (%7b is escaped “{” and %7d is escaped “}”)
  5. &cmdbar=true (this is the bar that starts with “+ New”)
  6. &web=true (this makes sure the navigation bar will show)
  7. &navbar=on (the navigation bar)

Note: If you want to find the viewid, go to your CRM record or view, click “Email a link” and then “of Current View”, then find the viewid in the link.

For more information, see MSDN article Open forms, views, dialogs, and reports with a URL

 

 

Filed under: Other

Pareshan Hoon (Bal-e-Jibreel)

پریشان ھوں کے میری خاک آخر دل نا بن جاے
جو مشکل اب ہے یا رب پھر وھی مشکل نا بن جاے

Worry I, that my scattered ashes become a beating heart again.
Those woes that haunted it since, make it fall apart again.

نا کر دیں مجھ کو مجبور نو فردوس میں حوریں
میرا سوز دوران پھر گرمی محفل نا بن جاے

Worry I, the sirens of heaven may tempt me into a song,
The love that burnt timid since, may burst into a blaze.

کبھی چھوڑی ہی منزل بھی یاد آتی ہے راھی کو
کھٹک سی ہے جو سینے میں غم منزل نا بن جاے

Does the wise seafarer ever dwell within his forgone paths? Nay,
But this infliction to you, may become my sorrow fare’s end.

بنایا عشق نے دریا نا پیدا کرنا مجھ کو
یه میری خد نگھداری میرا ساحل نا بن جاے

My love can make my ship run through seas of boundless depths,
But worry I, fear will keep me treading the shallow shores again.

کھین اس علم با رنگ بو میں بھی طلب میری
وھی افسانه دنبالہ محمل نا بن جاے

Does a world full of color and spice, even have a need for me?
Will the passions of this heart of mine echo a forgotten tale.

عروج آدم خاکی سے انجم سہمے جاتے ھیں
کے یه ٹوٹا ھوا مہ کامل نا بن جائے

Panic strikes the stars above, as the feeble Adam rises.
Worry they, this broken star, doesn’t burn a brilliant flame.

Filed under: Other

تاک گلستان

تیری جانب ، اے شہر گل ، نظر بیتاب کھڑی

کھڑی تو ہے ، مگر معلوم ہے بیکار کھڑی

شاید صدا اے گی یہ، کے مجھ سے ہے کچھ کام طلب

اسی خواہش میں مین تیرے در پے ساری رات کھڑی

میرے سینے پر تیری تھامی ہوئی ہتھیلی تھی کبھی

تیری طرز و نظر سنگین، بلاتا تھا دلدار کبھی

آج تیری رہ بھی اور، صحبت یار بھی اور

بےسبب دوران خزاں، تاک گلستان کھڑی

Filed under: Other