Short | Description | Date | Long |
---|---|---|---|
https://aka.ms/ppcvscode | Power Platform Tools | 2023-09-06 | https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.powerplatform-vscode |
https://aka.ms/PowerQuerySDKDocs | Power Query SDK Docs | 2023-09-18 | https://learn.microsoft.com/en-us/power-query/power-query-sdk-vs-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const moment = require('moment'); | |
var template = ` | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> | |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script> | |
<style> | |
.table-responsive-custom { | |
display: block; | |
width: 100%; | |
overflow-x: auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Environment Variables: | |
// url: <your-resource> example: https://myfancyapp.crm4.dynamics.com | |
// clientid: <user-clientid-from-appreg> example: 1950a258-227b-4e31-a9cf-717495945fc2 | |
// To know how to use this script, please read the following blog post: | |
// https://bycode.dev/2024/04/04/automatically-authenticate-in-postman-with-pre-request-scripts/ | |
const utils = { | |
auth: { | |
message: "", | |
async refreshAuth() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project> | |
<PropertyGroup> | |
<LangVersion>11</LangVersion> | |
<Nullable>disable</Nullable> | |
</PropertyGroup> | |
<PropertyGroup> | |
<EnableNETAnalyzers>true</EnableNETAnalyzers> | |
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> | |
</PropertyGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Add-Path { | |
param( | |
[Parameter(Mandatory, Position=0)] | |
[string] $LiteralPath, | |
[ValidateSet('User', 'CurrentUser', 'Machine', 'LocalMachine')] | |
[string] $Scope | |
) | |
Set-StrictMode -Version 1; $ErrorActionPreference = 'Stop' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Xrm.Sdk; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System; | |
namespace MyFancyPlugins.Tests.JsonConverters; | |
/// <summary> | |
/// Allows serialization / deserialization of <see cref="Microsoft.Xrm.Sdk.EntityCollection". This type is | |
/// intended for unit-testing only./> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Xml.Linq; | |
namespace Playground | |
{ | |
public class FetchUtil | |
{ | |
private static readonly Type[] SimpleTypes = new Type[] { typeof(string), typeof(DateTime), typeof(Enum), typeof(decimal), typeof(Guid) }; | |
public static XElement ToXml(string rootName, object? x, XElement? root = null) | |
{ | |
if (x == null) { return new XElement(rootName); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This function uses Navigation API to display a centered dialog. */ | |
/* Simple parameters are used instead of object to make the function compatible with command bar parameters. */ | |
function displayDialog(rowId, tableName, pageName, title, contentWidth, contentHeight, primaryControl) { | |
const parseSize = (str, defaultStr) => (str || defaultStr || "500px").match(/([\d\.]*)(.*)/).splice(1,2); | |
let [w, wUnit] = parseSize(contentWidth); | |
let [h, hUnit] = parseSize(contentHeight); | |
var pageInput = { | |
pageType: "custom", | |
name: pageName, | |
entityName: tableName, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SampleModule { | |
export class SampleComponent { | |
isValid: KnockoutComputed<boolean>; | |
//... | |
constructor(public element) { | |
//... | |
this.isValidConnectAs = ko.computed<boolean>({ | |
owner: this, | |
read: () => { |
NewerOlder