Posts

Showing posts from 2021

Using QueryExpression get the Link Entity details in D365

 public static void Main() {     EntityCollection salesOrderCollection = this.GetAccounts(customerId, salesOrderCreationDate); } public EntityCollection GetAccounts(string customerId, DateTime AccountBaseCreationDate) {     QueryExpression ContactItemQuery = new QueryExpression(AccountBase.LogicalName);     // Add Condition to Customer.     ContactItemQuery.Criteria.AddCondition(AccountBase.Id, ConditionOperator.Equal, customerId);     FilterExpression mainFilter = new FilterExpression(LogicalOperator.And);     mainFilter.AddCondition(AccountBase.CreatedOn, ConditionOperator.GreaterThan, AccountBaseCreationDate);     FilterExpression statusCodeFilter = new FilterExpression(LogicalOperator.Or);     statusCodeFilter.AddCondition(AccountBase.Status, ConditionOperator.Equal, (int)AccountBase.AccountStatus.Submitted);     statusCodeFilter.AddCondition(AccountBase.Status, ConditionOperator.Equal, (i...

Deploy a Azure Service Bus Topic using ARM Template

Image
  Deploy a Azure Service Bus Topic using ARM Template with Deploy a Custom Template. https://blogs.perficient.com/2016/03/29/azure-arm-template-create-service-bus-topic-with-subscription/ Login to Azure URL: https://portal.azure.com Username:     xxxxxxxxx@microsoft.com Password:       ********** è After login to Azure in Search with Deploy a Custom Template and open it. è Click on Build your own template in the editor Create a json file with below code: ex: AzureDeploy.json /////////////////////////////////////////////////////////////////////////////////////// {   "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",   "contentVersion": "1.0.0.0",   "parameters": {     "serviceBusNamespaceName": {       "type": "string",       "metadata": {         "description": "Name of the Service Bus Namespace"   ...

Side Pane in D365/ Side Pane in Entity Form In D365

Image
Side Pane in D365 In Account Entity Form we are showing the Account Related Contact in Side Pane using HTML Page. We need to call JavaScript Function(APY.Account.LoadPromotions) on Different Event Like OnLoad, OnChange, OnSave Or Ribbion Button Click. In this Blog I have registered the Event on OnLoad of Form with  APY.Account.LoadPromotions Create a Java script Webresource with below Code : //Build test script comment var APY = APY || { namespace: true }; APY.Account = APY.Account || { namespace: true }; APY.Account.LoadPromotions = function (executionContext) {     "use strict";     try {         var formContext = executionContext.getFormContext();         var qs = "accountid=" + formContext.data.entity.getId().replace('{', '').replace('}', '');         Xrm.App.sidePanes.createPane({             title: "Contacts",             paneId: "Contact...

Copy Record from Parent to Child using Java Script Html along with jqgrid

 ////////////CopyQuote Javascript////////////////////////////// var getGUiDofSelectedRecord; var formContext; function OpenHTML(primaryControl) {     debugger;     formContext = primaryControl;     if (Xrm.Page.getAttribute("customerid") != null && Xrm.Page.getAttribute("customerid") != undefined) {         if (Xrm.Page.getAttribute("customerid").getValue() == null) {             alert("Please select the customer");             return;         }     }     var isEdit = true;     var alertButton = new Alert.Button();     alertButton.label = "Copy & Close";     alertButton.callback = onAlertCloseButtonClick;     var array = new Array();     array.push(alertButton);     if (isEdit) {         Alert.showWebResource("apy_CustoapyMLForAccountQuotePopul...

Sample Table ofHTML with JqGrid

 <html> <head>     <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>     <script src="/WebResources/ apy_/grid.locale_en.js" type="text/javascript"></script>     <script src="/WebResources/ apy_/jquery.jqgrid.min.js" type="text/javascript"></script>     <link href="/WebResources/ apy_bootstrap.css" rel="stylesheet" type="text/css">     <link href="/WebResources/ apy_/ui.jqgrid.css" rel="stylesheet" type="text/css">     <link href="/WebResources/ apy_/jquery_ui.css" rel="stylesheet" type="text/css">     <style>         .ui-jqgrid tr.jqgrow td {             white-space: normal !important;             height: auto;     ...