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 System; | |
using System.ServiceModel; | |
using Microsoft.Xrm.Sdk; | |
using Microsoft.Xrm.Sdk.Messages; | |
using Microsoft.Xrm.Sdk.Metadata; | |
using Microsoft.Xrm.Sdk.Query; | |
namespace MergePoc.Plugins | |
{ |
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
// <copyright file="PreOperationAccountMerge.cs" company=""> | |
// Copyright (c) 2021 All Rights Reserved | |
// </copyright> | |
// <author></author> | |
// <date>12/17/2021 6:04:07 PM</date> | |
// <summary>Implements the PreOperationAccountMerge Plugin.</summary> | |
// <auto-generated> | |
// This code was generated by a tool. | |
// Runtime Version:4.0.30319.1 |
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
var pageInput = { | |
pageType: "custom", | |
name: "mea_home_809de", | |
recordId:JSON.stringify({prop1: "Hello,", prop2: " World !"}) | |
}; | |
Xrm.Navigation.navigateTo(pageInput).then( | |
function success() { | |
// Run code on success | |
}, |
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(executionContext) { | |
var formContext = executionContext.getFormContext(); | |
//DEMO 1 | |
//formContext.getAttribute('firstname').addOnChange(displayDialogAfter5Secondes); | |
//DEMO 2 | |
formContext.data.entity.addOnSave(validatePhoneNumber); | |
//DEMO 4 | |
//formContext.ui.addOnLoad(applyForm); | |
} | |
//DEMO 1 |
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 openDialog(exectionContext) { | |
var dialogParameters = { | |
pageType: "custom", | |
name: "new_dialogsample_bb2dc", | |
}; | |
var navigationOptions = { | |
target: 2,//use 1 if you want to open page inline or 2 to open it as dialog | |
width: 800, // value specified in pixel | |
height: 420, | |
position: 1,//1 to locate dialog in center and 2 to locate it on the side, |
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
import { IInputs, IOutputs } from "./generated/ManifestTypes"; | |
export class ValueTurner implements ComponentFramework.StandardControl<IInputs, IOutputs> { | |
private context_: ComponentFramework.Context<IInputs> | |
constructor() { | |
} | |
/** |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<manifest> | |
<control namespace="MEA" constructor="ValueTurner" version="1.0.21" display-name-key="ValueTurner" description-key="ValueTurner description" control-type="standard" > | |
<external-service-usage enabled="false"> | |
</external-service-usage> | |
<property name="data" display-name-key="data" description-key="data" of-type="Object" usage="input" required="true" /> | |
<property name="sessionStorageKey" display-name-key="sessionStorageKey" description-key="sessionStorageKey" of-type="SingleLine.Text" usage="input" required="true" /> | |
<resources> | |
<code path="index.ts" order="1"/> |
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
if (typeof (MEA) == "undefined") { MEA = {} }; | |
if (typeof (MEA.Apps) == "undefined") { MEA.Apps = {} }; | |
if (typeof (MEA.Apps.RD) == "undefined") { MEA.Apps.RD = {} }; | |
MEA.Apps.RD = { | |
onLoad: async function () { | |
//Xrm.Panel.loadPanel("WebResources/mea_/Webpages/Youtube.html", "Panel 1"); | |
var sidePanes = Xrm.App.sidePanes; | |
sidePanes.state = 0 |
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> | |
<title>Flow JS SDK Sample</title> | |
<style> | |
.flowContainer iframe { | |
border: none; | |
width: 100%; | |
height: 100%; | |
} |
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
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$sourceNugetExe = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" | |
$targetNugetExe = ".\nuget.exe" | |
Remove-Item .\Tools -Force -Recurse -ErrorAction Ignore | |
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe | |
Set-Alias nuget $targetNugetExe -Scope Global -Verbose | |
## | |
##Download Plug-in Registration tool | |
## |