Skip to main content

How to create new (missing) columns for entities in your Data Export Service Azure SQL database

How to add your personal PowerBI Dashboard as a system dashboard

The general guideline on how to create a personal dashboard is described in this article:

But what if you want to rollout a global PowerBI dashboard for all users?
With some tweaks you can manage it to make it work…
1. After you have created your personal dashboard you need to extract the formxml of that dashboard with this URL query in a browser tab:$select=name,formxml&$filter=type eq 103 and name eq 'Ticket Status'
type = 103 => PowerBi Dashboard
name = 'Your PowerBI Dashboard Name'
In the result copy the XML part out of the "formxml" property and replace the \" characters with double quotes ":
"formxml":"<form><tabs><tab showlabel=\"false\" verticallayout=\"true\" id=\"{79c2fe56-9774-4fcc-82d9-15be85cb49b6}\">
<labels><label description=\"Tab\" languagecode=\"1033\" /></labels><columns><column width=\"100%\">
<sections><section showlabel=\"false\" showbar=\"false\" columns=\"111\" id=\"{17a1f9a6-0a04-4662-8d47-05cecb80b3a7}\">
<labels><label description=\"Section\" languagecode=\"1033\" /></labels><rows><row><cell colspan=\"3\" rowspan=\"24\" 
showlabel=\"false\" id=\"{a294c3cf-aab6-482d-99e9-ed67cb0db353}\" availableforphone=\"false\"><labels />
<control id=\"Component04cd521\" classid=\"{8C54228C-1B25-4909-A12A-F2B968BB0D62}\"><parameters>
2. Create a new solution:

3. Add a new dashboard to your solution
4. Export your solution
5. Unzip Solution file
6. Open the customization.xml file in your favorite editor tool
7. Search for the <Dashbard> Tag
8. Search for your localized dashboard name
9. Move forward to the <FormXml><forms type="dashboard"> tags
10. Replace the content and tags starting from <form> until you reach </form> tag.
11. Copy the formxml from the retrieved web api userform request of the first step above and put in between the <forms type="..."> ... </forms> tags.
12. Now change the form tab label id and the section label id by e.g. replacing the last number with a new number:
Form label id:

Section label id:

13. Save the customization.xml file and ZIP again the solution file
14. Import and publish your customized solution.
15. Check if it works


      <LocalizedName description="Technician Timesheet" languagecode="1033" />
      <forms type="dashboard">
            <tab showlabel="false" verticallayout="true" id="{79c2fe56-9774-4fcc-82d9-15be85cb49b6}">
                <label description="Tab" languagecode="1033" />
                <column width="100%">
                    <section showlabel="false" showbar="false" columns="111" id="{17a1f9a6-0a04-4662-8d47-05cecb80b3a7}">
                        <label description="Section" languagecode="1033" />
                          <cell colspan="3" rowspan="24" showlabel="false" id="{a294c3cf-aab6-482d-99e9-ed67cb0db353}" availableforphone="false">
                            <labels />
                            <control id="Component04cd521" classid="{8C54228C-1B25-4909-A12A-F2B968BB0D62}">
Now your report appears in the system dashboard section!

Further advantage is that you can configure the security roles valid for this report


Popular posts from this blog

Yet Another Address Autocomplete PCF Control–powered by Bing

In this blog post I will not go into detail in how to install all the pre-requisites that are required to build and run PCF controls. My goal was to build a new PCF control and get into coding of PCF controls as fast as possible.

Here are a few links to articles that will help you installing the pre-requisites (Microsoft PowerApps CLI)
Other good references to get into this topic:
I looked through the Guido Preite’s which will help you find appropriate use cases / examples for your own needs. It did not take very long to find a simple example to start with: Andrew Butenko's
A few moments later I had the idea to create yet another address autocomplete control b…

Regarding SPFieldMultiLineText (Add HTML/URL content to a field) programmatically

I recently tried so set some HTML content in a SharePoint list column of type SPFieldMultiLineText.

My first approach was this piece of code:

SPFieldMultiLineText field = item.Fields.GetFieldByInternalName("Associated Documents") as SPFieldMultiLineText; StringBuilder docList = new StringBuilder(); docList.Append(""); foreach (DataRow docRow in addDocs) { DataRow[] parent = dr.Table.DataSet.Tables[0].Select("DOK_ID=" + docRow["DOK_MGD_ID"].ToString()); if (parent != null && parent.Length > 0) { docList.AppendFormat("{1}", parent[0]["FilePath"].ToString(), parent[0]["Title"].ToString()); } } if (docList.Length > 0) { // remove trailing tag docList.Remove(docList.Length-5, 5); } docList.Append(" "); string newValue = docList.ToString(); item[field.Title] = newValue;
What this code does is to get all associated documents to the main document and to add these document uri links to the "Assoc…

Set Multi-OptionSet values with a custom workflow activity

As the relatively new multi-optionset field type arrived with v.9 of Dynamics 365 the need to set values via workflow is quite a common requirement. So I searched within the community to find some ideas on how to solve and create such a workflow activity and so I stumbled upon Demian Raschkovan’s Workflow Tools with can be found on his github repository:

It gave me some basic ideas to reach my requirements which are: Should be generic for any type of entity Ability to specify the attribute name of the required multi-optionset for that entity Provide a list of multi-optionset values (comma-separated) Keep existing values (True/Yes => add provided values / False/No => replace all values with the provided values Remove specific value(s) from an existing set of values
My code sample (without other dependencies):
using Microsoft.Xrm.Sdk; using Micr…