This file contains hidden or 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 script was intended for Dynamics CRM 2016 on-premise. | |
function Get-Users { | |
<# | |
.SYNOPSIS | |
Retrieve dynamics system users domain name. | |
.DESCRIPTION | |
Retrieve dynamics system users domain name. | |
.PARAMETER ServerUrl | |
The server url and the organization |
This file contains hidden or 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
/* jshint unused: false */ | |
/* globals Xrm */ | |
var XrmUtil = (function () { | |
// Private / Global var | |
var odataEndPoint = Xrm.Page.context.getClientUrl() + '/api/data/v8.2/'; | |
// Private / Global function | |
var ErrorHandler = function (e, origin) { | |
try { |
This file contains hidden or 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 <GeneratedEntities>; | |
using Microsoft.Xrm.Sdk; | |
using Microsoft.Xrm.Sdk.Client; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Xrm.Plugins.Sandbox |
This file contains hidden or 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
namespace Xrm.Plugins.Sandbox | |
{ | |
using Microsoft.Xrm.Sdk; | |
using System; | |
using System.Collections.ObjectModel; | |
using System.Globalization; | |
using System.Linq; | |
using System.ServiceModel; | |
using System.ComponentModel.Design; |
This file contains hidden or 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
<html> | |
<head> | |
<script type='text/javascript> | |
setInterval(function() { | |
parent.Mscrm.DashboardRibbonActions.refreshDashboardPage(); | |
},60 * 1000); | |
</script> | |
</head> | |
</html> |
This file contains hidden or 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
//Create the lookup value object | |
var lookupReference = []; | |
lookupReference[0] = {}; | |
lookupReference[0].id = “{a0c68c89-9752-e311-93f9-00155d78043f}”; | |
lookupReference[0].entityType = “new_entityname”; | |
lookupReference[0].name = “Display name”; | |
//Magic happens here | |
lookupReference[0].type = “lookup”; |
This file contains hidden or 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
//Create the lookup value object | |
var lookupReference = []; | |
lookupReference[0] = {}; | |
lookupReference[0].id = "{a0c68c89-9752-e311-93f9-00155d78043f}"; | |
lookupReference[0].entityType = "new_entityname"; | |
lookupReference[0].name = "Display name"; | |
//Magic happens here | |
lookupReference[0].type = "lookup"; |
This file contains hidden or 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 OnLoad() { | |
if (!window.parent.$('span#Notification0_text').text()) { | |
var notificationId = window.parent.$('div#Notification0').attr('notificationid'); | |
Xrm.Page.ui.clearFormNotification(notificationId); | |
if (Xrm.Page.context.getUserLcid() == 1036) { | |
Xrm.Page.ui.setFormNotification('Au moins un destinataire est marqué "Ne pas autoriser" les appels téléphoniques', 'ERROR'); | |
} | |
else { | |
Xrm.Page.ui.setFormNotification('At least one recipient is marked as "Do Not Allow" phone.', 'ERROR'); |
This file contains hidden or 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
Update-ExecutionPolicy Unrestricted | |
#iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/NickPl/boxstarter/master/BuildScripts/bootstrapper.ps1')) | |
#Get-Boxstarter -Force | |
# Install Chocolatey | |
Set-ExecutionPolicy Bypass -Scope Process -Force; | |
`iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
cinst pwsh -y |