Export Office365 users along with assigned licenses to CSV

Here is a small PowerShell script to Export all users in your tenant along with the licenses assigned to them in O365.

To Execute this you must have MSOL  PowerShell module installed which you can install by running following command

Install-Module MSOnline

Once its installed run following script

#Establish a PowerShell session with Office 365. You'll be prompted for your Delegated Admin credentials

if (!$UserCredential)
{
$UserCredential = Get-Credential
}

Connect-MsolService -Credential $UserCredential

Get-MsolUser -All | select DisplayName,USerprincipalname,islicensed,{$_.Licenses.AccountSkuId} | Export-CSV C:\<FileName>.csv

PCF Custom Control Builder

Power Maverick

Now with PowerApps Component Framework for model-driven apps and PowerApps CLI generally available, I think the XrmToolbox plugin PCF Custom Control Builder will come very handy. This tool enables you to build Custom Controls with ease where you do not need to write the CLI commands. Most of the commands are consolidated into one button click making it easier to build controls. So, download the plugin using “Plugin Store”.

To read more about what is PowerApps Component Framework read here.

Overview

Toolbar

Below is the list of buttons available on the toolbar and description of the actions they perform:

  • New PCF Control
    • New from Blank: This would setup the plugin to guide you through the process of creating a custom control from scratch.
    • New from Template: The plugin would present you with various community built custom controls published on PCF Gallery. Once you download any of the custom…

View original post 926 more words

PCF Control – Address Finder for New Zealand region

Recently Microsoft released preview version of PowerApp Component Framework which enable developers working on Dynamics 365 to create cool custom controls and enhancing the capability.

I have Utilized it to create Address Finder control which should work for New Zealand region.

Continue reading “PCF Control – Address Finder for New Zealand region”

Generating SSRS Report and adding it as an attachment to a record using JavaScript

Recently I had a requirement to generate a report and add it as a Attachment to a record on click of a button.

In the following code just replace ‘reportname’,’reportGuid’, ‘strParameterXML’ and ‘CRM_ReportParameterIfAny’ with the actual values and bind AttachReport Method to ribbon button commannd.

Continue reading “Generating SSRS Report and adding it as an attachment to a record using JavaScript”