Posts

Copy Text Control using PCF In Power Apps

Image
Type any text in TextBox click on copy button and Paste any where on your computer. Please refer below Link https://github.com/TBag/power-apps-copy-text-to-clipboard#:~:text=import%20*%20as%20copy%20from%20'copy,handler%20for%20a%20button%20click.

How to Add a Popup for DELETE a record in Power Apps

Image
1. Login to PowerApps. 2. Open the APP 3. Create One Screen 4. Add One Gallery and DataSet is Account      In Gallery add one button which DELETE      OnSelect of DELETE button      Set(AccountDialog, true);      Set(AccountItem, ThisItem); 5. Take one Rectangle and Below values      Visible=AccountDialog      Fill=RGBA(0, 0, 0, .6)      Add one Label and 2 buttons 1. OK 2. Cancel 6. OnSelect of OK button      If(User().Email=AdminItem.'Grant Email to',Notify("You cannot revoke your own Access. Please           contact Admin."),Remove('Admin Users',AdminItem);Set(adminDialog,false))      7. OnSelect of Cancel button      Set(adminDialog,false)

how to get the XRM/FromContext on html page in D365.

Let’s image that you created a simple HTML web resource that needs to do some work and then pass it back to the form. Previously to do so you would use parent.Xrm. However, the problem is that previous parent.Xrm and Xrm.Page is deprecated. But know you have supported way to do so - welcome getContentWindow. syntax:  formContext.getControl(arg).getContentWindow().then(successCallback, errorCallback); 1. Create a java script webresource in Solution with below code. 2. Add the Event onLoad / OnChange on Entity Form and Pass Parameter. function Form_OnchangeOROnLoad(executionContext) {     var formContext = executionContext.getFormContext();     var wrControl = formContext.getControl("new_WebResourceName.htm");     if (wrControl) {         wrControl.getContentWindow().then(             function (contentWindow) {       ...

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...