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 Microsoft.Xrm.Sdk.Client; | |
using Microsoft.Xrm.Sdk.Query; | |
using System; | |
using System.ServiceModel.Description; | |
namespace MelTools | |
{ | |
class getAllUsersPersonalViewsContainingField |
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.Crm.Sdk.Messages; | |
using Microsoft.Xrm.Sdk; | |
using Microsoft.Xrm.Sdk.Messages; | |
using Microsoft.Xrm.Sdk.Query; | |
using Microsoft.Xrm.Tooling.Connector; | |
using System; | |
namespace MEA | |
{ | |
class sampleConsoleApp |
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
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 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 MEA = window.MEA || {}; | |
var accountForm = MEA.accountForm || {}; | |
(function () { | |
this.OnLoad = function (onLoadContext) { | |
var formContext = onLoadContext.getFormContext(); | |
var phoneControl = formContext.getControl('telephone1'); | |
phoneControl.addOnOutputChange(this.OnOutputChangeHandler); | |
}; | |
this.OnOutputChangeHandler = function (OnOutputChangeContext) { |
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
var MEA = window.MEA || {}; | |
var accountForm = MEA.accountForm || {}; | |
(function () { | |
this.OnLoad = function (onLoadContext) { | |
var formContext = onLoadContext.getFormContext(); | |
var extraParameters = Xrm.Utility.getGlobalContext().getQueryStringParameters(); | |
var tabName = extraParameters["tab_name"]; | |
if(tabName != undefined){ | |
var defaultTabObj = formContext.ui.tabs.get(tabName); |
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 getActivities(executionContext) { | |
var formContext = executionContext.getFormContext(); | |
//get current contact id; | |
var recordId = formContext.data.entity.getId(); | |
var ActivitiesSubGridControl = formContext.getControl("ActivitiesSubGrid"); | |
//recordId = recordId.replace("{", "").replace("}", ""); | |
recordId = recordId.slice(1, -1); | |
var orConditionsList = []; | |
var orConditionsFetchXml = ""; |
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
// <copyright file="Plg_ExecuteFetchXml.cs" company=""> | |
// Copyright (c) 2022 All Rights Reserved | |
// </copyright> | |
// <author></author> | |
// <date>3/14/2022 2:38:36 PM</date> | |
// <summary>Implements the Plg_ExecuteFetchXml Plugin.</summary> | |
// <auto-generated> | |
// This code was generated by a tool. | |
// Runtime Version:4.0.30319.1 |
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
var MEA = window.MEA || {}; | |
var accountForm = MEA.accountForm || {}; | |
(function () { | |
this.OnLoad = function (onLoadContext) { | |
console.log("onLoad ...."); | |
var formContext = onLoadContext.getFormContext(); | |
formContext.getAttribute('telephone1').addOnChange(this.OnChangeHandler); | |
}; | |
this.OnChangeHandler = function (onChangeContext) { |
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
var MEA = window.MEA || {}; | |
var accountForm = MEA.accountForm || {}; | |
(function () { | |
this.OnLoad = function (onLoadContext) { | |
console.log("onLoad ...."); | |
var eventArgs = onLoadContext.getEventArgs(); | |
var formContext = onLoadContext.getFormContext(); | |
if (eventArgs.getDataLoadState() == 1) { | |
formContext.getAttribute('telephone1').addOnChange(this.OnChangeHandler); |
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
//Optimistic Concurrency in Model-Driven Apps Forms | |
var MEA = window.MEA || {}; | |
var OptimisticConcurrencyForm = MEA.OptimisticConcurrencyForm || {}; | |
(function () { | |
var versionNumber = null; | |
var entityReference = null; | |
this.OnLoad = async function (executionContext) { | |
var eventArgs = executionContext.getEventArgs(); | |
if (eventArgs.getDataLoadState() == 1) { |
NewerOlder